public void refreshUI() { hpBarScript.UpdateHPBar(currentHP); foodText.text = "Food : " + food + " (press R)"; string lifeString = ""; for (int i = 0; i < remainingLife; i++) { if (i == 0) { lifeString += "♥"; } else { lifeString += " ♥"; } } lifeText.text = lifeString; }
public void refreshUI() { hpBarScript.UpdateHPBar(currentHP); }