public static void RemoveSound(WavSound sound) { if (sound.mono) { AudioManager._monoSounds.Remove(sound); } else { AudioManager._stereoSounds.Remove(sound); } }
public static void AddSound(WavSound sound) { if (sound.mono) { if (AudioManager._monoSounds.Contains(sound)) { return; } AudioManager._monoSounds.Add(sound); } else { if (AudioManager._stereoSounds.Contains(sound)) { return; } AudioManager._stereoSounds.Add(sound); } }