Hi,
In start function u have assigned the assigning the score=0 and then called UpdateScore ().Then the value of score remains same as zero it does not get updated.
So the PlayerPrefs of “HIGHSCORE_KEY” value remains zero.
U have missed to call the function for adding score.
After updating score,“HIGHSCORE_KEY” PlayerPrefs value has to assign to HighScore.
You’re only checking if score is higher than score in start, try moving it into the AddScore(). This isn’t the most efficient way of handling a high score, you would want to check it at the end of the game but I assume your code is just temporary testing.