Quantcast
Channel: Answers for "Save and display a highscore"
Browsing all 4 articles
Browse latest View live

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...

View Article


Answer by Infernospeed

You might want to look into [PlayerPrefs][1] Here is an example, int Highscore = 0; void Start() { //loading highscore Highscore = PlayerPrefs.GetInt("MyHighscore"); InvokeRepeating("CreateObstacle",...

View Article


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...

View Article

Answer by Infernospeed

You might want to look into [PlayerPrefs][1] Here is an example, int Highscore = 0; void Start() { //loading highscore Highscore = PlayerPrefs.GetInt("MyHighscore"); InvokeRepeating("CreateObstacle",...

View Article
Browsing all 4 articles
Browse latest View live


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