Inheritance: StateMachine
Ejemplo n.º 1
0
 public void SetCurrentState(AbstractState state)
 {
     currentState = state;
     currentState.controller = controller;
     currentState.Init();
 }
Ejemplo n.º 2
0
 public void AddState(AbstractState state)
 {
     stateList.Add(state);
     state.controller = controller;
 }