Esempio n. 1
0
 private void LateUpdate()
 {
     currentHealth = thisHealth.getHealth();
     text.text     = currentHealth.ToString();
 }
Esempio n. 2
0
 private void Start()
 {
     text          = GetComponent <Text>();
     thisHealth    = healthParent.GetComponent <health>();
     currentHealth = thisHealth.getHealth();
 }