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

How would I make a high score thing? (it would be on a seperate scene)

$
0
0
So I have a points stystem, but I want to add a high score in the main menu. Right now its in a canvas and text and here's the scripts, i really need help thanks! One script that shows how much points go in fo each bullet: function DeductPoints (DamageAmount : int) { GlobalScore.CurrentScore +=10; } Script for score popping up in game: static var CurrentScore : int; var InternalScore : int; var ScoreText : GameObject; function Update () { InternalScore = CurrentScore; ScoreText.GetComponent.().text = "" + InternalScore; }

Viewing all articles
Browse latest Browse all 1333

Trending Articles



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