Question by
Ghost-Of-Sparta · Jun 07, 2017 at 05:10 PM ·
savingcoinsdeveloper
Coints and saving
Hello guys, im making a game that i need to collect coints to buy thing in shop and im having truble with saving and adding new coint my coints saves but the dont add when i take 1 coin. like i have 10 coints and it saves that when i take 1 it dosent save here is my code
void Update()
{
if (count > PlayerPrefs.GetInt ("Coints", 0))
{
PlayerPrefs.SetInt ("Coints", count);
CointsCountText.text = count.ToString ();
}
}
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612123718im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
How to Make an Object Slide When Instantiated? 0 Answers
Saving a Player Pref Exclusive to that instance of a script 0 Answers
How to save 1 Answer
Why is the BinaryFormatter's output human-readable? 0 Answers