Quantcast
Channel: Questions in topic: "playerprefs"
Viewing all articles
Browse latest Browse all 1333

Can you help me do a highscore please? I've got this problem..

$
0
0
if (isdead == false) { score += Time.deltaTime * 25; scoreText.text = ((int)score).ToString(); if (scoreText > PlayerPrefs.GetInt("Highscore")) { PlayerPrefs.SetInt("Highscore", scoreText); } } // I tried using score instead of scoreText in player prefs btw

Viewing all articles
Browse latest Browse all 1333

Trending Articles



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