Пример #1
0
 private void Update()
 {
     if (fighter.GetTarget() != null)
     {
         Health health = fighter.GetTarget();
         GetComponent <Text>().text = String.Format("{0:0}/{1:0}", health.GetHealthPoint(), health.GetMaxHitPoint());
     }
     else
     {
         GetComponent <Text>().text = "N/A";
     }
 }
Пример #2
0
 private void Update()
 {
     GetComponent <Text>().text = String.Format("{0:0}/{1:0}", health.GetHealthPoint(), health.GetMaxHitPoint());
 }