parry and health bar pt1

This commit is contained in:
djkellerman
2025-02-26 20:17:19 -05:00
parent 710df1c8d4
commit 62c4a240b0
6 changed files with 114 additions and 15 deletions

View File

@@ -0,0 +1,18 @@
using UnityEngine;
using UnityEngine.UI;
public class HealthBar : MonoBehaviour
{
public Slider slider;
public void SetMaxHealth(float health)
{
slider.maxValue = health;
slider.value = health;
}
public void SetHealth(float health)
{
slider.value = health;
}
}