public static void ToggleSetting(Saving.SettingKey settingKey) { Saving.SaveSetting(settingKey, !Saving.LoadSetting(settingKey)); }
public static bool LoadSetting(Saving.SettingKey settingKey) { return(PlayerPrefs.GetInt(settingKey.ToString(), 0) == 1); }
public static bool HasSetting(Saving.SettingKey settingKey) { return(PlayerPrefs.HasKey(settingKey.ToString())); }
public static void SaveSetting(Saving.SettingKey settingKey, bool value) { PlayerPrefs.SetInt(settingKey.ToString(), (!value) ? 0 : 1); PlayerPrefs.Save(); }