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); } }