High Score System

One of my published assets is a simple high score system that utilises PlayerPrefs to store high scores. The package is programmed in both C# and JavaScript to allow for more users.

This is the example scene contained within the package that exhibits all the functions within. The left cube adds +1 to the current high score. The right cube saves the current score as the high score only if it is higher than the current high score. (However if required, the forceSetHighscore() can be used to change a high score regardless of its current value)

Clicking the centre cube will reset the high score to 0. If the user sets a high score and reloads the scene, the high score will remain in the second rectangle on the top left of the screen.

If you would like the source of this project, please contact me.