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