Beispiel #1
0
        private void RestartScene()
        {
            // Interface
            gameUI.Revive();

            Registry.AudioManager.MusicVolume = 1.0f;
            if (_levelType == LevelType.Interior)
            {
                Registry.AudioManager.PlayMusic("Audio/DST-ConFuze", true);
            }
            else
            {
                Registry.AudioManager.PlayMusic("Audio/DST-DXT", true);
            }

            // Joueurs
            _player.Revive();

            // Aliens
            _ennemyManager.Revive();

            // Score
            Registry.Players[0].GameScore.Score = 0;

            // Bonus
            bonusGroup.Clear();

            // MessageBox
            messageBoxManager.DesactiveMessageBoxes();

            _looseTimer.Restart();
        }