public static Monk_DeadState Instance() { if (_instance == null) { _instance = new Monk_DeadState(); } return(_instance); }
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()); }