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"; } }
private void Update() { GetComponent <Text>().text = String.Format("{0:0}/{1:0}", health.GetHealthPoint(), health.GetMaxHitPoint()); }