Hello!
I want to display the players score. I want to display last score, and highest score.
How do I script highest score using c#?
I’m trying to do something like that:
if (NewScore > PlayerPrefs.GetInt("Max Score")){
PlayerPrefs.SetInt("Max Scoret", NewScore );
MaxScoreText.text = ("Your max score is: " + PlayerPrefs.GetInt("Max Score"));
}
else {
MaxScoreText.text = ("Your max score is: " + PlayerPrefs.GetInt("Max Score"));
}