private void FixedUpdate() { if (health > 0) { if (IsStaggered == true) { StopCoroutine("CastCo"); StartCoroutine("CastCo", castTimeAfterDamage); } CheckDistance(); } else if (stateMachine.currentState != Monk_DeadState.Instance()) { StopCoroutine("CastCo"); stateMachine.ChangeState(Monk_DeadState.Instance()); } stateMachine.Update(); }
public override void Death() { stateMachine.ChangeState(Monk_DeadState.Instance()); }