protected void MoveAni() { AniFuction = null; ActerAni.SetBool("walk", true); ActerAni.SetBool("idle", false); AniFuction = MoveAni; }
protected void HitAni() { AniFuction = null; ActerAni.SetTrigger("hit"); if (haveCharacter.Life == DeadorLive.DEAD) { Dead(); if (this.GetType() == typeof(MonsterActor)) { PlayerManager.instance.HuntCountUp(); UIWarManager.instance.SetScore(PlayerManager.instance.SCORE); } } }
void decisionAct() { switch (homeactkind) { case HomeActNum.RightWalk: right(); MoveAni(); HomeMoveFuction = HomeMove; break; case HomeActNum.LeftWalk: Left(); MoveAni(); HomeMoveFuction = HomeMove; break; case HomeActNum.Idle: IdleAni(); HomeMoveFuction = null; break; } }
protected void AttackAni() { AniFuction = null; ActerAni.SetTrigger("attack"); }
protected void FireAni() { AniFuction = null; ActerAni.SetTrigger("fire"); }
public void SetButtonAcitve(voiddelgate fuction) { ButtonAcitve = fuction; }