[Solved] Saving int in Unity using playerprefs

[ad_1]

You save like this

PlayerPrefs.SetInt("Health", 100);
PlayerPrefs.SetInt("Mana", 10);
PlayerPrefs.Save();

If you want to update the values, just do the same.
To get a int from playerprefs, just do

PlayerPrefs.GetInt("Health")

3

[ad_2]

solved Saving int in Unity using playerprefs