Unity game Score script

Hi, I want to make it so that the score from one scene can be pasted into another

so when the game ends and the game over scene loads the game will show the score that the player got

or just a script that saves the score from one scene and adds it into another

You have several possibilities :

  • You save the score in a preferencein the first scene and then read it in the game over scene (have a look at THIS).

  • You have a game object that will contain a script that begins with THAT and will contain your score. The method will keep the game object between scenes, so your score will not be lost.

I’m sure there are some other possibilities, but I think these two are the easier way to do it.

Good luck :slight_smile: