Beispiel #1
0
    public static void setSaveInt(SaveInt saveInt, int value)
    {
        CustomDebug.Log("[save]" + saveInt + " " + value);
        PlayerPrefs.SetInt(saveInt.ToString(), value);

        PlayerPrefs.Save();
    }
Beispiel #2
0
	public static void setSaveInt(SaveInt saveInt, int value){
        CustomDebug.Log("[save]" + saveInt + " " + value );
		PlayerPrefs.SetInt (saveInt.ToString(),value);

        PlayerPrefs.Save();
	}
Beispiel #3
0
 public static int getSaveInt(SaveInt saveInt)
 {
     CustomDebug.Log("[load]" + saveInt + " " + PlayerPrefs.GetInt(saveInt.ToString()));
     return(PlayerPrefs.GetInt(saveInt.ToString()));
 }
Beispiel #4
0
	public static int getSaveInt(SaveInt saveInt){
        CustomDebug.Log("[load]" + saveInt +" "+PlayerPrefs.GetInt (saveInt.ToString()));
		return PlayerPrefs.GetInt (saveInt.ToString());
	}