public static void SetString(Key key, string s) { if (GetString(key) != s) { PlayerPrefs.SetString(Prefix + key, s); PlayerPrefs.Flush(); } }
public static void SetBool(Key key, bool s) { if (GetBool(key) != s) { PlayerPrefs.SetBool(Prefix + key, s); PlayerPrefs.Flush(); } }
public static void SetFloat(Key key, float s) { if (GetFloat(key) != s) { PlayerPrefs.SetFloat(Prefix + key, s); PlayerPrefs.Flush(); } }
public static int GetInt(Key key, int defaultValue) { return(PlayerPrefs.GetInt(Prefix + key, defaultValue)); }
public static int GetInt(Key key) { return(PlayerPrefs.GetInt(Prefix + key)); }
public static bool GetBool(Key key, bool defaultValue) { return(PlayerPrefs.GetBool(Prefix + key, defaultValue)); }
public static bool GetBool(Key key) { return(PlayerPrefs.GetBool(Prefix + key)); }
public static string GetString(Key key, string defaultValue) { return(PlayerPrefs.GetString(Prefix + key, defaultValue)); }
public static string GetString(Key key) { return(PlayerPrefs.GetString(Prefix + key)); }
public static void Delete(Key key) { PlayerPrefs.DeleteKey(Prefix + key); PlayerPrefs.Flush(); }
public static float GetFloat(Key key) { return(PlayerPrefs.GetFloat(Prefix + key)); }