private void Start()
 {
     if (UserSettings.SettingsExist)
     {
         LoadVolumes();
         AudioParameterManager.SetMasterMute(UserSettings.GameData.MasterMute);
     }
 }
        private void SetInitialVolumes()
        {
            foreach (InitialValuePerBus pair in initialVolumes)
            {
                if (pair.Key == BusType.Master)
                {
                    AudioParameterManager.SetMasterVolume(pair.Value);
                    AudioParameterManager.SetMasterMute(pair.isMuted);
                    continue;
                }

                string busPath = EventPaths.GetPath(pair.Key);
                AudioParameterManager.SetBusVolume(busPath, pair.Value);
                AudioParameterManager.SetBusMute(busPath, pair.isMuted);
            }
        }
 public float GetVolume(BusType busType)
 {
     return(AudioParameterManager.GetBusVolume(EventPaths.GetPath(busType)));
 }
 public void SetVolume(BusType busType, float volume)
 {
     AudioParameterManager.SetBusVolume(EventPaths.GetPath(busType), volume);
 }