- Home /
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 :)
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 :D
Answer by Dameon_ · Apr 29, 2014 at 04:26 PM
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.
It works with mobile phones ?? Because i read that with mobiles it doesn't work..
Your answer
Follow this Question
Related Questions
Reading from a file not working on Android 0 Answers
How should I go about proper GUIText scaling for mobile devices? 0 Answers
Blurry Text using Textmesh Pro on android device 2 Answers
How to create RtL text mobile notification 0 Answers
Android File-io? 1 Answer