Exemple #1
0
        static public void Update()
        {
            switch (CurrentMenuState)
            {
            case MenuState.Main:
                _chooseLevel.Update();
                _quit.Update();
                _options.Update();
                _multiplayer.Update();
                _storyModeButton.Update();
                break;

            case MenuState.StoryMode:
                SaveSelector.Update();
                break;

            case MenuState.LevelSelector:
                _levelSelection.Update();
                break;

            case MenuState.Options:
                break;

            case MenuState.MultiplayerLobby:
                Lobby.Update();
                break;

            case MenuState.MultiplayerSession:
                _startMultiplayerGame.Update();
                break;
            }

            Cursor.Show();
            Cursor.ChangeCursor(Cursor.Type.Normal);

            if (TMBAW_Game.CurrentGameState == GameState.MainMenu)
            {
                SoundtrackManager.PlayMainTheme();
            }
        }