HHWK0.1
This commit is contained in:
@@ -16,7 +16,8 @@ public class Eff_BCJX_Skill_AniEvent : MonoBehaviour
|
||||
{
|
||||
if (index >= hWK_BCJX_Boss.prizeCount)
|
||||
{
|
||||
Destroy(hWK_BCJX_Boss.gameObject);
|
||||
Pool.Instance.Return(hWK_BCJX_Boss.gameObject);
|
||||
//Destroy(hWK_BCJX_Boss.gameObject);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -5,9 +5,11 @@ public class Eff_bgjDie_AniEvent : MonoBehaviour
|
||||
|
||||
public void skillEnd()
|
||||
{
|
||||
Destroy(transform.parent.parent.gameObject);
|
||||
}
|
||||
public void startFly()
|
||||
//Destroy(transform.parent.parent.gameObject);
|
||||
Pool.Instance.Return(transform.parent.parent.gameObject);
|
||||
|
||||
}
|
||||
public void startFly()
|
||||
{
|
||||
GetComponentInParent<HHWK_BGJ_Boss>().BigPrizeAll();
|
||||
}
|
||||
|
||||
@@ -48,7 +48,8 @@ public class Eff_changE_SkillEvent : MonoBehaviour
|
||||
}
|
||||
else
|
||||
{
|
||||
Destroy(transform.parent.parent.gameObject);
|
||||
//Destroy(transform.parent.parent.gameObject);
|
||||
Pool.Instance.Return(transform.parent.parent.gameObject);
|
||||
}
|
||||
isEnd = true;
|
||||
}
|
||||
|
||||
@@ -29,7 +29,8 @@ public class Eff_longDie_AniEvent : MonoBehaviour
|
||||
transform.parent.gameObject.SetActive(false);
|
||||
}
|
||||
else
|
||||
Destroy(transform.parent.parent.gameObject);
|
||||
Pool.Instance.Return(transform.parent.parent.gameObject);
|
||||
//Destroy(transform.parent.parent.gameObject);
|
||||
isFirst = false;
|
||||
}
|
||||
public void Jiao()
|
||||
|
||||
@@ -8,7 +8,9 @@ public class Eff_long_AniEvent : MonoBehaviour
|
||||
if (num == 4)
|
||||
{
|
||||
//transform.parent.parent.gameObject.SetActive(false);
|
||||
Destroy( transform.parent.parent.gameObject);
|
||||
//Destroy( transform.parent.parent.gameObject);
|
||||
Pool.Instance.Return(transform.parent.parent.gameObject);
|
||||
|
||||
}
|
||||
num++;
|
||||
|
||||
|
||||
@@ -87,7 +87,7 @@ public class Eff_shaseng_Skill1_AniEvent : MonoBehaviour
|
||||
count++;
|
||||
nextAnimationClip = "skill1";
|
||||
|
||||
|
||||
HHWK_ShaSeng_Boss.obj_Skill2Effect.SetActive(true);
|
||||
FishResourcesData fishResourcesData;
|
||||
fishResourcesData = FishResourcesData.fishResourcesDatasDic[HHWK_ShaSeng_Boss.fishTypeID];
|
||||
if (fishResourcesData.dieGlodAduio != null && fishResourcesData.dieGlodAduio.ContainsKey("ShuaiGun"))
|
||||
@@ -102,7 +102,7 @@ public class Eff_shaseng_Skill1_AniEvent : MonoBehaviour
|
||||
public void eventBroken()
|
||||
{
|
||||
|
||||
HHWK_ShaSeng_Boss.obj_Skill2Effect.SetActive(true);
|
||||
|
||||
HHWK_ShaSeng_Boss.BigPrize(2, 4);
|
||||
FishResourcesData fishResourcesData;
|
||||
fishResourcesData = FishResourcesData.fishResourcesDatasDic[HHWK_ShaSeng_Boss.fishTypeID];
|
||||
@@ -121,7 +121,8 @@ public class Eff_shaseng_Skill1_AniEvent : MonoBehaviour
|
||||
HHWK_ShaSeng_Boss.obj_Skill2Effect.SetActive(false);
|
||||
if (count == 4)
|
||||
{
|
||||
Destroy(HHWK_ShaSeng_Boss.gameObject);
|
||||
Pool.Instance.Return(HHWK_ShaSeng_Boss.gameObject);
|
||||
//Destroy(HHWK_ShaSeng_Boss.gameObject);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@@ -60,7 +60,8 @@ public class Eff_tangseng_AniEvent : MonoBehaviour
|
||||
{
|
||||
if (index >= hWK_TS_Boss.prizeCount)
|
||||
{
|
||||
Destroy(hWK_TS_Boss.gameObject);
|
||||
//Destroy(hWK_TS_Boss.gameObject);
|
||||
Pool.Instance.Return(hWK_TS_Boss.gameObject);
|
||||
}
|
||||
else
|
||||
anim.Play("skill1");
|
||||
|
||||
@@ -49,7 +49,8 @@ public class Eff_tsgzSkill_AniEvent : MonoBehaviour
|
||||
}
|
||||
public void eventRotationEnd()
|
||||
{
|
||||
Destroy(hHWK_TSGZ_Boss.gameObject);
|
||||
//Destroy(hHWK_TSGZ_Boss.gameObject);
|
||||
Pool.Instance.Return(hHWK_TSGZ_Boss.gameObject);
|
||||
|
||||
}
|
||||
public void eventShanAppear()
|
||||
|
||||
@@ -49,8 +49,10 @@ public class Eff_yilongSkill_AniEvent : MonoBehaviour
|
||||
}
|
||||
public void eventFallEnd()
|
||||
{
|
||||
Destroy(hHWK_YL_BOSS.gameObject);
|
||||
}
|
||||
//Destroy(hHWK_YL_BOSS.gameObject);
|
||||
Pool.Instance.Return(hHWK_YL_BOSS.gameObject);
|
||||
|
||||
}
|
||||
|
||||
/*
|
||||
Dummy class. This could have happened for several reasons:
|
||||
|
||||
@@ -103,7 +103,8 @@ public class Eff_yilong_AniEvent : MonoBehaviour
|
||||
}
|
||||
public void AniEnd()
|
||||
{
|
||||
CreateFishManager.Instance.Id_DieFish_NotFX(transform.parent.parent.GetComponent<MonsterContral>().guid);
|
||||
//CreateFishManager.Instance.Id_DieFish_NotFX(transform.parent.parent.GetComponent<MonsterContral>().guid);
|
||||
Pool.Instance.Return(hHWK_YL_BOSS.gameObject);
|
||||
|
||||
}
|
||||
/*
|
||||
|
||||
@@ -109,7 +109,7 @@ public class Eff_zhubajie_Skill_AniEvent : MonoBehaviour
|
||||
}
|
||||
public void AniEnd()
|
||||
{
|
||||
Destroy(hWK_ZBJ_Boss.gameObject);
|
||||
Pool.Instance.Return(hWK_ZBJ_Boss.gameObject);
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -11,7 +11,9 @@ public class FishBCJX177 : MonoBehaviour
|
||||
{
|
||||
hWK_BCJX_Boss.defaultAnim.gameObject.SetActive(false);
|
||||
hWK_BCJX_Boss.skillAnim.transform.parent.gameObject.SetActive(true);
|
||||
hWK_BCJX_Boss.transform.position = Vector3.zero;
|
||||
hWK_BCJX_Boss.skillAnim.Play("idle");
|
||||
|
||||
hWK_BCJX_Boss.transform.position = Vector3.zero;
|
||||
}
|
||||
/*
|
||||
Dummy class. This could have happened for several reasons:
|
||||
|
||||
Reference in New Issue
Block a user