Skip to content

Commit

Permalink
FEAT: Fillbar speed optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
SirBang committed Apr 26, 2024
1 parent 6a0dbfe commit 9de0caf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Space Fighter/Assets/Scripts/UI/FillBarView.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,13 @@ private void RefreshWhiteFill()
}

float whiteFillAmount = m_currentWhiteFillValue / m_maxValue;
m_whiteFillImage.fillAmount = Mathf.Clamp(whiteFillAmount, 0, 1);
m_whiteFillImage.fillAmount = Mathf.Clamp(whiteFillAmount, 0, 1.5);
}

private void RefreshFill()
{
float fillAmount = m_currentValue / m_maxValue;
fillAmount = Mathf.Clamp(fillAmount, 0, 1);
fillAmount = Mathf.Clamp(fillAmount, 0, 1.5);

if (m_fillImage.fillAmount != fillAmount)
{
Expand Down

0 comments on commit 9de0caf

Please # to comment.