예제 #1
0
        public GameController(Menu menu, GameplayUI gameplayUI, SettingsMenu settingsMenu, QuickMenu quickMenu, MediaElement musicMedia, MediaElement soundEffectMedia)
        {
            this.menu         = menu;
            this.gameplayUI   = gameplayUI;
            this.settingsMenu = settingsMenu;
            this.quickMenu    = quickMenu;
            settings          = Settings.LoadSettings();

            music       = new SoundController(musicMedia);
            soundEffect = new SoundController(soundEffectMedia);

            music.LoadSound("bensound-relaxing.mp3");
            music.ChangeVolume(settings.MusicVolume);
            music.Play();
        }