// Jimmy Vegas Unity Tutorial // This Script will count your score and display it import UnityEngine.UI; static var TheScore : int; var ScoreDisplay : GameObject function Start () { InvokeRepeating("AddScore", 1, 0.1); } function AddScore() { TheScore += 5; ScoreDisplay.GetComponent.().text = "Score: " + TheScore; }