Exemple #1
0
 // Update is called once per frame
 void Update()
 {
     text.text = ballGod.GetScore().ToString();
 }
Exemple #2
0
 // Use this for initialization
 void Start()
 {
     ballGod   = Object.FindObjectOfType <BallGod>();
     text      = gameObject.GetComponent <Text>();
     text.text = ballGod.GetScore().ToString();
 }