Skip to content

Commit 8dda12a

Browse files
committed
Update UIHealth.cs
1 parent 4bb6bf7 commit 8dda12a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Assets/BossRoom/Scripts/Shared/Game/UI/UIHealth.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ public void Initialize(NetworkVariableInt networkedHealth, int maxValue)
2828
void HealthChanged(int previousValue, int newValue)
2929
{
3030
m_HitPointsSlider.value = newValue;
31+
// disable slider when we're at full health!
3132
m_HitPointsSlider.gameObject.SetActive(m_HitPointsSlider.value != m_HitPointsSlider.maxValue);
3233
}
3334

0 commit comments

Comments
 (0)