public static void SetString(string key, string value) { Prefs.SetString(key, value); #if !UNITY_EDITOR Prefs.Save(); #endif }
public static void SetFloat(string key, float value) { Prefs.SetFloat(key, value); #if !UNITY_EDITOR Prefs.Save(); #endif }
public static void SetLong(string key, long value) { Prefs.SetString(key, value.ToString("0")); #if !UNITY_EDITOR Prefs.Save(); #endif }
public static void SetBool(string key, bool value) { Prefs.SetInt(key, value ? 1 : 0); #if !UNITY_EDITOR Prefs.Save(); #endif }
public static void DeleteAll() { Prefs.DeleteAll(); #if !UNITY_EDITOR Prefs.Save(); #endif }
public static void DeleteKey(string key) { Prefs.DeleteKey(key); #if !UNITY_EDITOR Prefs.Save(); #endif }