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