예제 #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;
     }
 }
예제 #2
0
 public bool Equals(LoopedSong song)
 {
     return((((object)song) != null) && (Name == song.Name));
 }