// Start is called before the first frame update void Start() { anim = GetComponent <Animator>(); stateMachine = new StateMachine <Shadow>(this); stateMachine.currentState = Shadow_IdleState.Instance(); }
public void SwitchAttackOff() { anim.SetBool("isAttacking", false); stateMachine.ChangeState(Shadow_IdleState.Instance()); }