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