public static void Save() { PlayerPrefs.SetFloat("set_overscan", overscanRatio); PlayerPrefs.SetFloat("set_musicVolume", musicVolume); PlayerPrefs.SetFloat("set_soundVolume", soundVolume); custom.Save("set_custom"); PlayerPrefsF.SetBool("set_hints", hints); }
public static void Load() { if (!PlayerPrefs.HasKey("set_musicVolume")) { musicVolume = .5f; soundVolume = .5f; overscanRatio = 0; return; } overscanRatio = PlayerPrefs.GetFloat("set_overscan"); musicVolume = PlayerPrefs.GetFloat("set_musicVolume"); soundVolume = PlayerPrefs.GetFloat("set_soundVolume"); custom.Load("set_custom"); hints = PlayerPrefsF.GetBool("set_hints"); }