Exemple #1
0
 private void Update()
 {
     GetComponent <Text>().text = String.Format("{0:0}/{1:0}", health.GetHealthPoints(), health.GetMaxHealthPoints());
 }
Exemple #2
0
 private void Update()
 {
     GetComponent <Text>().text = String.Format("{0:0}/{1:0}", health.GetHealthPoints(), health.GetMaxHealthPoints());//0:0.0 to change to 1 higher level of precision
 }