Example #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();
    }
Example #2
0
 public void SwitchAttackOff()
 {
     anim.SetBool("isAttacking", false);
     stateMachine.ChangeState(Shadow_IdleState.Instance());
 }