Esempio n. 1
0
 /// <summary>
 /// Displays the HP bar with the current/max as the amount text
 /// </summary>
 /// <param name="immediate"></param>
 private void SetDisplayCurrentOverMax(bool immediate = false)
 {
     text.SetText(currentAmount.ToString() + "/" + maxAmount.ToString());
     text.ScaleFont();
     fillAmount = currentAmount / maxAmount;
     if (immediate)
     {
         frontFill.fillAmount = fillAmount;
     }
     else
     {
         StartCoroutine(Fill());
     }
 }