public void SaveOptions()
 {
     PlayerPrefs.SetInt("GameName.AnisoTropic", this.CurrentAS);
     PlayerPrefs.SetInt("GameName.AntiAliasing", this.CurrentAA);
     PlayerPrefs.SetInt("GameName.BlendWeight", this.CurrentBW);
     PlayerPrefs.SetInt("GameName.QualityLevel", this.CurrentQuality);
     PlayerPrefs.SetInt("GameName.ResolutionScreen", this.CurrentRS);
     PlayerPrefs.SetInt("GameName.VSyncCount", this.CurrentVSC);
     PlayerPrefs.SetInt("GameName.AnisoTropic", this.CurrentAS);
     PlayerPrefs.SetInt("GameName.TextureLimit", this.CurrentTL);
     PlayerPrefs.SetInt("GameName.ShadowCascade", this.CurrentSC);
     PlayerPrefs.SetFloat("GameName.Volumen", this._volumen);
     PlayerPrefs.SetFloat("GameName.ShadowDistance", this.cacheShadowDistance);
     PlayerPrefs.SetInt("GameName.ShadowProjection", !this.shadowProjection ? 0 : 1);
     PlayerPrefs.SetInt("GameName.ShowFPS", !this._showFPS ? 0 : 1);
     PlayerPrefs.SetInt("GameName.PauseAudio", !this._isPauseSound ? 0 : 1);
     PlayerPrefs.SetInt("GameName.ResolutionMode", !this.useFullScreen ? 0 : 1);
     PlayerPrefs.SetInt("GameName.ShadowEnable", AllOptionsKeyPro.BoolToInt(this._shadowEnable));
     PlayerPrefs.SetFloat("GameName.Brightness", this._brightness);
     PlayerPrefs.SetInt("GameName.RealtimeReflection", AllOptionsKeyPro.BoolToInt(this._realtimeReflection));
     PlayerPrefs.SetFloat("GameName.LoadBias", this._lodBias);
     PlayerPrefs.SetFloat("GameName.HudScale", this._hudScale);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Save all options for load in a next time
 /// </summary>
 public void SaveOptions()
 {
     PlayerPrefs.SetInt(AllOptionsKeyPro.AnisoTropic, CurrentAS);
     PlayerPrefs.SetInt(AllOptionsKeyPro.AntiAliasing, CurrentAA);
     PlayerPrefs.SetInt(AllOptionsKeyPro.BlendWeight, CurrentBW);
     PlayerPrefs.SetInt(AllOptionsKeyPro.Quality, CurrentQuality);
     PlayerPrefs.SetInt(AllOptionsKeyPro.Resolution, CurrentRS);
     PlayerPrefs.SetInt(AllOptionsKeyPro.VsyncCount, CurrentVSC);
     PlayerPrefs.SetInt(AllOptionsKeyPro.AnisoTropic, CurrentAS);
     PlayerPrefs.SetInt(AllOptionsKeyPro.TextureLimit, CurrentTL);
     PlayerPrefs.SetInt(AllOptionsKeyPro.ShadowCascade, CurrentSC);
     PlayerPrefs.SetFloat(AllOptionsKeyPro.Volumen, _volumen);
     PlayerPrefs.SetFloat(AllOptionsKeyPro.ShadowDistance, cacheShadowDistance);
     PlayerPrefs.SetInt(AllOptionsKeyPro.ShadownProjection, (shadowProjection) ? 1 : 0);
     PlayerPrefs.SetInt(AllOptionsKeyPro.ShowFPS, (_showFPS) ? 1 : 0);
     PlayerPrefs.SetInt(AllOptionsKeyPro.PauseAudio, (_isPauseSound) ? 1 : 0);
     PlayerPrefs.SetInt(AllOptionsKeyPro.ResolutionMode, (useFullScreen) ? 1 : 0);
     PlayerPrefs.SetInt(AllOptionsKeyPro.ShadowEnable, AllOptionsKeyPro.BoolToInt(_shadowEnable));
     PlayerPrefs.SetFloat(AllOptionsKeyPro.Brightness, _brightness);
     PlayerPrefs.SetInt(AllOptionsKeyPro.RealtimeReflection, AllOptionsKeyPro.BoolToInt(_realtimeReflection));
     PlayerPrefs.SetFloat(AllOptionsKeyPro.LodBias, _lodBias);
     PlayerPrefs.SetFloat(AllOptionsKeyPro.HUDScale, _hudScale);
     ShowMenu();
 }