Ejemplo n.º 1
0
    // Start is called before the first frame update
    void Start()
    {
        anim = GetComponent <Animator>();

        stateMachine = new StateMachine <Shadow>(this);
        stateMachine.currentState = Shadow_IdleState.Instance();
    }
Ejemplo n.º 2
0
    public static Shadow_IdleState Instance()
    {
        if (_instance == null)
        {
            _instance = new Shadow_IdleState();
        }

        return(_instance);
    }
Ejemplo n.º 3
0
 public void SwitchAttackOff()
 {
     anim.SetBool("isAttacking", false);
     stateMachine.ChangeState(Shadow_IdleState.Instance());
 }