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;
}
↧