public void SetGameState(GameState state) { this.gameState = state; switch (this.gameState) { case GameState.eMain: WindowUI.GameOver(); break; case GameState.eGaming: WindowUI.GameBegin(); break; } }