Quantcast
Viewing all articles
Browse latest Browse all 4

Answer by Suddoha

You can do the following as soon as your game/level/round is finished. It'll save the highscore to the PlayerPrefs: // loads the value for "highscore", returns the default 0 if it doesn't exist int highscore = PlayerPrefs.GetInt("highscore", 0); if(highscore < score) { // saves the value of "score" into the highscore field PlayerPrefs.SetInt("highscore", score); }

Viewing all articles
Browse latest Browse all 4

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>