示例#1
0
        public void Select()
        {
            switch (CurrentSelected)
            {
            case Menu.Normal_Mode:
                gameModel = new GameModel(this, controllers);
                graphicsManager.BindModel(gameModel);
                gameModel.Initialize(GameMode.normal, soundManager.SoundEffectListener);
                soundManager.BindPlayer(ActivePlayer);
                soundManager.BindModel(gameModel);
                break;

            case Menu.Infinite_Mode:
                gameModel = new GameModel(this, controllers);
                graphicsManager.BindModel(gameModel);
                gameModel.Initialize(GameMode.infinite, soundManager.SoundEffectListener);
                soundManager.BindPlayer(ActivePlayer);
                soundManager.BindModel(gameModel);
                break;

            case Menu.Quit:
                Exit();
                break;

            default:
                break;
            }
        }