I have made a game where u fly along and u have to avoid objects.
The "score" is calculated in TotalDistance.
Whenever the player hits an object or hits the floor, the game goes back to the start.
I would like to have the "Score" and "Highscore" there,and i was wondering how to calculate that and wich variables/codes i need to implent.
Thanks in advance!