Highscore Table

Hi Unity Community

I am absolute new to Unity and appreciate your help and expertise. What I’m trying to achieve is to have at my Game Over Screen a Highscore Table with the Top 5 Scores the Player achieved.

I’m using a very simple but great working score/point counter:

#pragma strict

var points:int = 0;
var anzeige:UnityEngine.UI.Text;

function Update () {
	anzeige.text = points + '';

}

The code works fine. Also it shows the score at the right corner of the screen in a GUI that I use for. Also it remains at the GameOver Screen thanks to “DontDestroyOnLoad”.

… but now, I don’t know where to start. I looked at a few tutorials but I don’t get it how it works - well that’s because I’m absolute newbie to coding and Unity. In my mind I have the solution, but I can not translate it to a code.

It should be something like this:

get score from the GUI
write score in Highscore table
save the score

Maybe you could give me some hints on how to.

I already appreciate your time and help!

I’ve found something, that may help … but my lack of knowledge drives me crazy! :slight_smile:

I’ve posted this question: