Exemplo n.º 1
0
        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;
        }
Exemplo n.º 2
0
 public void StartStateMachine(UpdateCaller caller)
 {
     stateMachine.Enable(initState, caller);
 }