Пример #1
0
    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();
    }
Пример #2
0
 public override void Death()
 {
     stateMachine.ChangeState(Monk_DeadState.Instance());
 }