Exemple #1
0
    private static void SetUserAccess(bool logged)
    {
        int loggedIn = logged ? 1 : 0;

        Prefs.SetInt(USER_LOGGED, loggedIn);
        Prefs.Save();
    }
Exemple #2
0
 static public void setPlayerModel(int v)
 {
     PlayerModel.active = v;
     PlayerPrefs.SetInt("PlayerModel", v);
 }
Exemple #3
0
 static private void setBool(string key, bool v)
 {
     PlayerPrefs.SetInt(key, (v ? 1 : 0));
 }
Exemple #4
0
 static public void setParticlesQual(Global.ParticleQuality gpq)
 {
     Global.particleQuality = gpq;
     PlayerPrefs.SetInt("ParticleQuality", (int)gpq);
 }
Exemple #5
0
 public static void ResetUserAccess()
 {
     Prefs.SetInt(USER_LOGGED, 0);
     Prefs.SetString(USER_PROFILE, "");
     Prefs.Save();
 }