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; }
public void Init(Unit unit, BufferedStatedInput input) { this.unit = unit; this.input = input; }
public void SetCurrentData(Unit unit, BufferedStatedInput input) { this.unit = unit; this.input = input; }