コード例 #1
0
 public static void RemoveSound(WavSound sound)
 {
     if (sound.mono)
     {
         AudioManager._monoSounds.Remove(sound);
     }
     else
     {
         AudioManager._stereoSounds.Remove(sound);
     }
 }
コード例 #2
0
 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);
     }
 }