public void EnterState(GameState newState) { LeaveState(); m_state = newState; switch (m_state) { case GameState.MainMenu: { m_lives = 6; m_p1Score = 0; } break; case GameState.Playing: { } break; case GameState.PlayerDead: { m_dyingTimer = 1800.0f; } break; case GameState.GameOver: { if (m_p1Score > m_highScore) { m_highScore = m_p1Score; } m_entities.Clear(); } break; } }