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