Storing Player data such as money, exp, health

So I just started programming a 2D platformer RPG and was wondering what is the best way to set initial player data, then be able to add or subtract to that value in another script? I’ve heard of player prefs but im really quite unsure of how to use them, if someone could explain it better than the guide they have that would be really helpful. I’m quite confused. Thank you for your help!

Look at the API : Unity - Scripting API: PlayerPrefs

use SetInt, GetInt to store and get your values

Use the Playerprefs() to save, get, overwrite to your game data.

Thanks a bunch. So when editing I should use Playerprefs.save after every edit?

take a look at my “Storage” class
http://forum.unity3d.com/threads/extension-methods-lets-share.260569/
that oughta simplify things for you :slight_smile: