Ejemplo n.º 1
0
    //--------------------------------------------------------------------------

    private void StopSpeeding()
    {
        if (speedingSound)
        {
            speedingSound.AnimateFade(0.5f, true);
            speedingSound = null;
        }
    }
Ejemplo n.º 2
0
    //--------------------------------------------------------------------------

    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();
        }
    }