So i am making an in-game currency and its like
I have set that after a bit score a bit of currency would increase
like If score is >= 2 then currency+= 10; and so on for more different scores. but i am having an problem as if i the score is less than the one in script like if its less than 2 then the currency resets to 0, idk why.
i am using playerprefs, ik its not safe and all that but for now im just going to use this.
GameControl(score)script.png - Google Drive this is the script im using to control my game score
CoinsScript.png - Google Drive and this is the script im using for my in game currency. Please help me