15 lines
329 B
C#
15 lines
329 B
C#
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
namespace Code.Game.Minigames.MusicGame.UI
|
|
{
|
|
public class MusicMinigameEnemyHealth : MonoBehaviour
|
|
{
|
|
[SerializeField] private Image health;
|
|
|
|
public void SetEnemyHealth(float healthPercent)
|
|
{
|
|
health.fillAmount = healthPercent;
|
|
}
|
|
}
|
|
} |