Beispiel #1
0
 public static void SetString(Key key, string s)
 {
     if (GetString(key) != s)
     {
         PlayerPrefs.SetString(Prefix + key, s);
         PlayerPrefs.Flush();
     }
 }
Beispiel #2
0
 public static void SetBool(Key key, bool s)
 {
     if (GetBool(key) != s)
     {
         PlayerPrefs.SetBool(Prefix + key, s);
         PlayerPrefs.Flush();
     }
 }
Beispiel #3
0
 public static void SetFloat(Key key, float s)
 {
     if (GetFloat(key) != s)
     {
         PlayerPrefs.SetFloat(Prefix + key, s);
         PlayerPrefs.Flush();
     }
 }
Beispiel #4
0
 public static int GetInt(Key key, int defaultValue)
 {
     return(PlayerPrefs.GetInt(Prefix + key, defaultValue));
 }
Beispiel #5
0
 public static int GetInt(Key key)
 {
     return(PlayerPrefs.GetInt(Prefix + key));
 }
Beispiel #6
0
 public static bool GetBool(Key key, bool defaultValue)
 {
     return(PlayerPrefs.GetBool(Prefix + key, defaultValue));
 }
Beispiel #7
0
 public static bool GetBool(Key key)
 {
     return(PlayerPrefs.GetBool(Prefix + key));
 }
Beispiel #8
0
 public static string GetString(Key key, string defaultValue)
 {
     return(PlayerPrefs.GetString(Prefix + key, defaultValue));
 }
Beispiel #9
0
 public static string GetString(Key key)
 {
     return(PlayerPrefs.GetString(Prefix + key));
 }
Beispiel #10
0
 public static void Delete(Key key)
 {
     PlayerPrefs.DeleteKey(Prefix + key);
     PlayerPrefs.Flush();
 }
Beispiel #11
0
 public static float GetFloat(Key key)
 {
     return(PlayerPrefs.GetFloat(Prefix + key));
 }