- Home /
Little Issue with Best Score by Playerprefs
Hi everyone i am working on a project and it has a score system. The problem is this
function Start () {
guiText.text=""+PlayerPrefs.GetInt("High Score");
}
If i use this, when i die it shows the current score and the best score. But the best score doesnt update itself for the current game. For example i scored 50 but in best score it saysa my last game's score 30. If i play again and die only then it uptades it.And it goes like that. I tried the update function instead of start. It works but problem with the update function is that it always shows 1 less. For example if i scored 51 best score says 50. How can i fix that?
Your answer
Follow this Question
Related Questions
Problems with saving/loading score with PlayerPrefs [C#] 1 Answer
I'm trying to set a high score but I can't display it in another scene? 2 Answers
PlayerPrefs HighScore problems, it doesn't work. 4 Answers
Highscore PlayerPrefs not working on iOS 0 Answers
Highscores PlayerPrefs Sorting Issue 2 Answers