示例#1
0
 /// <summary>
 /// Updates the healthbar.
 /// </summary>
 private void handleHitPoints()
 {
     Value = player.GetPlayerHitPoints();
     content.fillAmount = Mathf.Lerp(content.fillAmount, fillAmount, Time.deltaTime * lerpSpeed);
     content.color      = Color.Lerp(lowColor, fullColor, fillAmount);
 }