Esempio n. 1
0
 public static void PlayBGM(string fileName, float volume = 1.0f)
 {
     if (song != null)
     {
         song.Stop();
         song = null;
     }
     if (!String.IsNullOrWhiteSpace(fileName))
     {
         song = new LoopedSong(fileName);
         song.Play();
         bgmVol      = volume;
         song.Volume = bgmVol * BGMBalance;
     }
 }
Esempio n. 2
0
 public bool Equals(LoopedSong song)
 {
     return((((object)song) != null) && (Name == song.Name));
 }