High score local [Android]

Hi, i have a game for Android and i am looking for something that can help me to memorize the high score. I think that maybe one way is to create in the mobile phone one text file which contain the score and then it is read or written :slight_smile:

Can someone says me how can i do this or other things to memorize something ?

I tried to use PlayerPrefs (i don’t know if i use in the correct way) but everytime that the game is restart (when you lose you load the current scene) the highscore is 0…

Thank you :smiley:

You could store it in the PlayerPrefs file without having to do any custom file saving/loading.

PlayerPrefs - Unity Script Reference

There’s the documentation, which should tell you what you need to know about using the PlayerPrefs class.