示例#1
0
 private void Start()
 {
     CurrentState = new cRoomMappingState();
     CurrentState.Begin();
 }
示例#2
0
 /**
  * ChangeState
  * Changes the application state
  * @param state - the new state to change to
  */
 public void ChangeState(IApplicationState state)
 {
     CurrentState.Stop();
     CurrentState = state;
     state.Begin();
 }