Exemplo n.º 1
0
 private void Start()
 {
     if (UserSettings.SettingsExist)
     {
         LoadVolumes();
         AudioParameterManager.SetMasterMute(UserSettings.GameData.MasterMute);
     }
 }
Exemplo n.º 2
0
        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);
            }
        }