Beispiel #1
0
 public static void SetBool(Key key, bool s)
 {
     if (GetBool(key) != s)
     {
         PlayerPrefs.SetBool(Prefix + key, s);
         PlayerPrefs.Flush();
     }
 }
Beispiel #2
0
 public static void SetString(Key key, string s)
 {
     if (GetString(key) != s)
     {
         PlayerPrefs.SetString(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 void Delete(Key key)
 {
     PlayerPrefs.DeleteKey(Prefix + key);
     PlayerPrefs.Flush();
 }