//Jimmy Vegas Unity 5 Tutorial //These scripts will create and count your score static var CurrentScore : int; var InternalScore : int; var ScoreText : GameObject; function Update () { InternalScore = CurrentScore; ScoreText.GetComponent.().text = "" + InternalScore; } //====== function DeductPoints (DamageAmount : int) { GlobalScore.CurrentScore += 25; }