Ejemplo n.º 1
0
        private void Update()
        {
            Health health = fighter.GetTarget();

            if (health == null)
            {
                GetComponent <Text>().text = "N/A";
                return;
            }
            GetComponent <Text>().text = String.Format("{0:0}/{1::0}", health.GetHealthPoitns(), health.GetMaxHealthPoints());
        }
Ejemplo n.º 2
0
 private void Update()
 {
     GetComponent <Text>().text = String.Format("{0:0}/{1::0}", health.GetHealthPoitns(), health.GetMaxHealthPoints());
 }