Exemplo n.º 1
0
 private void Update()
 {
     if (fighter.GetTarget() == null)
     {
         GetComponent <Text>().text = "-/-";
     }
     else
     {
         Health health = fighter.GetTarget();
         GetComponent <Text>().text = string.Format("{0:0}/{1:0}", health.GetCurrentHealthPoints(), health.GetMaxHealthPoints());
     }
 }