// Update is called once per frame void Update() { healthPercentage.text = String.Format("{0:N1}%", playerHealth.GetHealthPercentage()); }