public void SetCurrentState(AbstractState state) { currentState = state; currentState.controller = controller; currentState.Init(); }
public void AddState(AbstractState state) { stateList.Add(state); state.controller = controller; }