public void Accept(AudioMixer mixer, PostProcessProfile postProcessProfile) { Screen.SetResolution(Resolution.width, Resolution.height, FullScreenMode, Resolution.refreshRate); QualitySettings.SetQualityLevel((int)Quality); QualitySettings.vSyncCount = Convert.ToInt32(VSync); if (postProcessProfile != null) { postProcessProfile.TryGetSettings(out bloom); postProcessProfile.TryGetSettings(out chromaticAberration); bloom.fastMode.value = FastMode; chromaticAberration.fastMode.value = FastMode; } if (mixer != null) { AudioSettings.SetVolume(mixer, MasterVolume, "masterVolume"); AudioSettings.SetVolume(mixer, MusicVolume, "musicVolume"); AudioSettings.SetVolume(mixer, SfxVolume, "sfxVolume"); } }
public void SetMusicVolume(float value) { AudioSettings.SetVolume(mixer, value, "musicVol"); }
public void SetSFXVolume(float value) { AudioSettings.SetVolume(mixer, value, "sfxVol"); }
public void SetMasterVolume(float value) { AudioSettings.SetVolume(mixer, value, "masterVol"); }