//-------------------------------------------------------------------------- private void StopSpeeding() { if (speedingSound) { speedingSound.AnimateFade(0.5f, true); speedingSound = null; } }
//-------------------------------------------------------------------------- private void PlaySlowMusic() { if (!backgroundMusicSlow) { backgroundMusicSlow = SoundPlayer.Instance.PlaySound(SoundConst.BACKGROUND_MUSIC_SLOW); backgroundMusicSlow.Volume = 1.0f; backgroundMusicSlow.Loop(); } else { if (backgroundMusicFast) { backgroundMusicFast.AnimateFade(0.3f, true); backgroundMusicFast = null; } backgroundMusicSlow.Play(); } }