Example #1
0
 public static void RegisterVolumeUpdater(SoundVolumeType type, SoundVolumeUpdater target)
 {
     if (!SettingsManager.soundVolumeUpdaters[(int)type].Contains(target))
     {
         SettingsManager.soundVolumeUpdaters[(int)type].Add(target);
         target.UpdateVolume(SettingsManager.soundVolumes[(int)type]);
     }
 }
Example #2
0
 public static void RemoveVolumeUpdater(SoundVolumeType type, SoundVolumeUpdater target)
 {
     SettingsManager.soundVolumeUpdaters[(int)type].Remove(target);
 }