예제 #1
0
    public void ExitGameState(GameState currentGameState)
    {
        switch (gameState)
        {
        case GameState.tutorial:
            tutorialExit.Run();
            break;

        case GameState.game:
            gameExit.Run();
            break;

        case GameState.gameOver:
            gameOverExit.Run();
            break;

        case GameState.endGame:
            endGameExit.Run();
            break;

        default:
            break;
        }

        gameStateStarted = false;
    }