public void Enable(IState startState, UpdateCaller caller) { Debug.Log("Enable Called"); nextStates = new List <IState>(); changeStateCallback = (IState nextState) => { changeState = true; nextStates.Add(nextState); }; //this.enabled = true; caller.SetUpdate(new Action(Execute)); startState.Enter(null); curr = startState; }
public void StartStateMachine(UpdateCaller caller) { stateMachine.Enable(initState, caller); }