public override void Awake(StateMachine stateMachine) { _player = stateMachine.GetComponent <PlayerController>(); _animator = stateMachine.GetComponent <Animator>(); _protagonist = stateMachine.GetComponent <Protagonist>(); _stateMachine = stateMachine; }
public override void Awake(StateMachine stateMachine) { _player = stateMachine.GetComponent <PlayerController>(); _animator = stateMachine.GetComponent <Animator>(); _protagonist = stateMachine.GetComponent <Protagonist>(); _originSO = (WalkingStateSO)base.originSO; _stateMachine = stateMachine; _transform = stateMachine.gameObject.transform; }