/************************************************/ protected void SwichState(State newState) { // go to end state m_currentState.End(); m_currentState = newState; // Turn to next begin state m_currentState.Begin(); }