Пример #1
0
        public override void Awake(StateMachine stateMachine)
        {
            _player      = stateMachine.GetComponent <PlayerController>();
            _animator    = stateMachine.GetComponent <Animator>();
            _protagonist = stateMachine.GetComponent <Protagonist>();

            _stateMachine = stateMachine;
        }
Пример #2
0
        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;
        }