Пример #1
0
 public void PlayMusic(SoundEffect music)
 {
     if (currentMusic != null && currentMusic.Equals(music))
     {
         return;
     }
     StopMusic();
     currentMusic                  = music;
     currentMusicInstance          = music.CreateInstance();
     currentMusicInstance.IsLooped = true;
     currentMusicInstance.Play();
 }