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