Exemplo n.º 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();
    }
Exemplo n.º 2
0
 public override void Death()
 {
     stateMachine.ChangeState(Monk_DeadState.Instance());
 }