private void Update()
 {
     healthText.text = health.GetHealth() + "/" + health.GetMaxHealthPoints();
 }
Esempio n. 2
0
 // Update is called once per frame
 void Update()
 {
     _healthDisplay.text = "Health: " + _health.GetHealth();
 }
 // Update is called once per frame
 void Update()
 {
     GetComponent <Text>().text = string.Format("{0:0}/{1:0}", health.GetHealth(), health.GetMaxHealthPoints());
 }