This commit is contained in:
djkellerman
2025-02-26 23:09:27 -05:00
parent 341e481ab4
commit b21efcd1eb

View File

@@ -7,12 +7,18 @@ public class HealthBar : MonoBehaviour
public void SetMaxHealth(float health)
{
slider.maxValue = health;
slider.value = health;
if (slider != null)
{
slider.maxValue = health;
slider.value = health;
}
}
public void SetHealth(float health)
{
slider.value = health;
if (slider != null)
{
slider.value = health;
}
}
}