save data persistent

i have money variable from below code :

    public static float money = PlayerPrefs.GetInt ("score");

the problem is that each time i quit the game and replay it in unity editor , my money is reset and those characters that i have bought are reset . i watached tutorials on Learn channel but its another approach . can you say me how to use save code and save character purchase and save when i change money variable then it is saved like that .

To make it clear we are not here to write code for you.
So,
Have you wrote any code to save your ‘money’? (If so, show us)
Look over the Unity Documentation to see if it helps. HERE

1 Like