Пример #1
0
        private void Awake()
        {
            bufferedStatedInput           = new BufferedStatedInput(bufferedInputController);
            bufferedStatedInput.OnSetDir += BufferedDirectonInput_SetDir;
            bufferedStatedInput.OnAction += BufferedDirectonInput_OnAction;

            stateLogicFactory = new UnitChangeStateLogicFactory(unit, bufferedStatedInput); //FIXME: DI

            unit.OnAnimationComplete += Unit_OnAnimationComplete;
            unit.OnStateChanged      += Unit_OnStateChanged;
        }
Пример #2
0
 public void Init(Unit unit, BufferedStatedInput input)
 {
     this.unit  = unit;
     this.input = input;
 }
Пример #3
0
 public void SetCurrentData(Unit unit, BufferedStatedInput input)
 {
     this.unit  = unit;
     this.input = input;
 }