How to save a value in player prefs? Var. (java)
So I'm trying to make a high score. I have this as my script (java): static var CurrentScore : int; var InternalScore : int;
var ScoreText : GameObject;
function Update () {
InternalScore = CurrentScore;
ScoreText.GetComponent.<Text>().text = "" + InternalScore;
}
and basically what needs to be done, I have to save the data from the (I think internal score? or current score, not sure yet) to player prefs and then also, create a new script/text area for the highscore. It would have to load the saved player pref score AND display the highest number one (highest score // high score). No idea how but any help does help much. Thanks!
Your answer
Follow this Question
Related Questions
Playerprefs not saving on Android but saving in unity run editor 2 Answers
*JavaScript* High Score help (Need help with player prefs) 1 Answer
Highscore with player prefs help. (JAVASCRIPT) 0 Answers
Player prefs confusion + high score display (Java) 0 Answers
Help making a high score with player prefs/displaying it 1 Answer