I've been trying out this method for storing a High Score but whenever the game comes to an end it simply stores the score as far as the player has gone on that round. So what ends up happening is even though the current score is less than the High Score the game saves whatever the last score was.
It's really odd because I have a check which says that only if the TotalDistance > HighScore then should it set the HighScore to the latest TotalDistance and not every time.
Here's an example of what I'm using at the moment:
If anyone can help me out with this I would be truly gratful!
Thanks!