From 9de0caf6a70f0db781e0f4dd32224077e751a72f Mon Sep 17 00:00:00 2001 From: SirBang Date: Fri, 26 Apr 2024 23:29:00 +0200 Subject: [PATCH] FEAT: Fillbar speed optimization --- Space Fighter/Assets/Scripts/UI/FillBarView.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Space Fighter/Assets/Scripts/UI/FillBarView.cs b/Space Fighter/Assets/Scripts/UI/FillBarView.cs index ea17dca..d5dd9ad 100644 --- a/Space Fighter/Assets/Scripts/UI/FillBarView.cs +++ b/Space Fighter/Assets/Scripts/UI/FillBarView.cs @@ -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) {