ZhuBaJie
This commit is contained in:
@@ -2,10 +2,15 @@
|
||||
|
||||
public class Eff_bgjDie_AniEvent : MonoBehaviour
|
||||
{
|
||||
|
||||
public void skillEnd()
|
||||
{
|
||||
Destroy(transform.parent.parent.gameObject);
|
||||
}
|
||||
public void startFly()
|
||||
{
|
||||
GetComponentInParent<HHWK_BGJ_Boss>().BigPrizeAll();
|
||||
}
|
||||
/*
|
||||
Dummy class. This could have happened for several reasons:
|
||||
|
||||
|
||||
@@ -9,15 +9,15 @@ public class Eff_bgj_AniEvent : MonoBehaviour
|
||||
}
|
||||
public void eventComeEnd()
|
||||
{
|
||||
GetComponent<Animation>().CrossFade("swim",0.3f);
|
||||
GetComponent<Animation>().Play("swim");
|
||||
}
|
||||
public void eventIdle1End()
|
||||
{
|
||||
GetComponent<Animation>().CrossFade("swim", 0.3f);
|
||||
GetComponent<Animation>().Play("swim");
|
||||
}
|
||||
public void eventSwimEnd()
|
||||
{
|
||||
GetComponent<Animation>().CrossFade("idle1", 0.3f);
|
||||
GetComponent<Animation>().Play("idle1");
|
||||
}
|
||||
public void eventHitEnd()
|
||||
{
|
||||
|
||||
@@ -1,8 +1,44 @@
|
||||
using System.Collections;
|
||||
using UnityEngine;
|
||||
|
||||
public class Eff_yilongSkill_AniEvent : MonoBehaviour
|
||||
{
|
||||
/*
|
||||
HHWK_YL_BOSS hHWK_YL_BOSS;
|
||||
private void Awake()
|
||||
{
|
||||
hHWK_YL_BOSS = GetComponentInParent<HHWK_YL_BOSS>();
|
||||
}
|
||||
public void eventStartEnd()
|
||||
{
|
||||
hHWK_YL_BOSS.dieAnim.Play("skill");
|
||||
|
||||
}
|
||||
public void eventSkillEnd()
|
||||
{
|
||||
hHWK_YL_BOSS.dieAnim.Play("fly");
|
||||
|
||||
}
|
||||
public void eventFlyEnd()
|
||||
{
|
||||
|
||||
StartCoroutine(ieYanChi());
|
||||
}
|
||||
IEnumerator ieYanChi()
|
||||
{
|
||||
yield return new WaitForSeconds(1f);
|
||||
hHWK_YL_BOSS.dieAnim.Play("fall");
|
||||
}
|
||||
public void eventFallBombTask()
|
||||
{
|
||||
//播放特效
|
||||
hHWK_YL_BOSS.BigPrizeAll();
|
||||
}
|
||||
public void eventFallEnd()
|
||||
{
|
||||
Destroy(hHWK_YL_BOSS.gameObject);
|
||||
}
|
||||
|
||||
/*
|
||||
Dummy class. This could have happened for several reasons:
|
||||
|
||||
1. No dll files were provided to AssetRipper.
|
||||
|
||||
@@ -4,27 +4,55 @@ using UnityEngine;
|
||||
|
||||
public class Eff_zhubajie_Skill_AniEvent : MonoBehaviour
|
||||
{
|
||||
int a=0;
|
||||
void FixedUpdate()
|
||||
|
||||
HHWK_ZBJ_Boss hWK_ZBJ_Boss;
|
||||
Animation anim;
|
||||
private void Awake()
|
||||
{
|
||||
hWK_ZBJ_Boss = GetComponentInParent<HHWK_ZBJ_Boss>();
|
||||
anim = GetComponent<Animation>();
|
||||
}
|
||||
int index=0;
|
||||
public void eventComeEnd()
|
||||
{
|
||||
if (a == 57)
|
||||
{
|
||||
transform.GetComponent<Animation>().Play("skill_jump");
|
||||
}
|
||||
if (a == 130)
|
||||
{
|
||||
transform.GetComponent<Animation>().Play("skill_rush");
|
||||
}
|
||||
if (a == 105)
|
||||
{
|
||||
transform.GetComponent<Animation>().Play("skill_turn");
|
||||
}
|
||||
if (a == 130)
|
||||
{
|
||||
transform.GetComponent<Animation>().Play("skill_end");
|
||||
}
|
||||
a++;
|
||||
|
||||
anim.Play("skill_jump");
|
||||
}
|
||||
public void eventEffect1()
|
||||
{
|
||||
|
||||
index++;
|
||||
hWK_ZBJ_Boss.BigPrize();
|
||||
}
|
||||
|
||||
public void eventEffect2()
|
||||
{
|
||||
index++;
|
||||
hWK_ZBJ_Boss.BigPrize();
|
||||
}
|
||||
public void eventSkill1End()
|
||||
{
|
||||
anim.Play("skill_rush");
|
||||
|
||||
}
|
||||
public void eventSkill2End()
|
||||
{
|
||||
anim.Play("skill_turn");
|
||||
|
||||
}
|
||||
public void eventTurnEnd()
|
||||
{
|
||||
if (index==6)
|
||||
{
|
||||
anim.Play("skill_end");
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
anim.Play("skill_jump");
|
||||
}
|
||||
}
|
||||
public void AniEnd()
|
||||
{
|
||||
Destroy(hWK_ZBJ_Boss.gameObject);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user