예제 #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());
        }
예제 #2
0
 private void Update()
 {
     GetComponent <Text>().text = String.Format("{0:0}/{1::0}", health.GetHealthPoitns(), health.GetMaxHealthPoints());
 }