- Home /
Question by
nvent3 · Nov 10, 2014 at 04:23 PM ·
playerprefs
Number of played games
Hi, I have problem with 1 thing in my game. I can't count played games by PlayerPrefs. Every game, this number is being reset.
Someone know, how can I do it?
Comment
@nvent3:
In your Hud script you use a variable called "playerScore" and in your Highscore script you store a variable called "score". Are they linked in any special way? If not, that's your problem ;)
Answer by ExtremePowers · Nov 10, 2014 at 04:47 PM
It looks like you are missing the PlayerPrefs.Save(); After the SetInt's
This is script of Score and Highscore. Depends on it I was trying to count played games, but games are not summed. I'm getting always same number.