High Score Script

I have a game that you have ballons that float to the top of the screen and you have to organize the ballons in different cargo bins by moving the ballons left to right as they float up.

At the end of the time frame the game goes to a game over scene. I want to implement a high scores Scene where your total score of the round in implemented and you can type in your name just like any High Score Script.

So basically after the game over scene it will jump to the High Scores scene where the points that added up will show you your high score… and i want that to stay in the game and be saved everytime you play the game.

Cause a problem i see with people is that the high score will work but as soon as you exit the game the High Scores that were implemented are totally gone and you have to start over.

What you want is PlayerPrefs. Values stored there persist between level changes and application sessions.

In the future, try searching first before asking, as this is a very common question, with many answers. You could’ve saved yourself 30 minutes waiting for someone to answer it again, and many people just ignore - or worse, vote down - common questions like this rather than answer them!

Hey thanks WiiTatl!