Coins counting and saving system.

Hello, i am new to c# in i don’t know how to do this. So what want to do is get 5 coins per 1 score point. Like if score = 10 then coins u would get 50 coins. That part is easy but how to save them and add new coins to saved coins? Only way to save things i know is player prefs but there ir only get int and set int. If i will set int then i will loose old coins that i have got from other rounds. I tried to add coins to player pref coins but unity threw error bcz u just can’t do that with player prefs or smth. Please help. And sorry for my bad english.

PlayerPrefs.SetInt("Coins", PlayerPrefs.GetInt("Coins") + 5);
1 Like

Well, i didn’t know that :smile: Thank you a lot!