i dont know how to add some value to int, or format code on this forum
#pragma strict
@script ExecuteInEditMode()
function Start()
{
PlayerPrefs.SetInt("Money", += 1);
}
function OnGUI()
{
if(GUI.Button(Rect(450, 140, 160, 40),"Back"))
{
PlayerPrefs.Save();
Application.LoadLevel(0);
}
}