Files
blackhole-escape/Assets/Assets_And_Scenes/Scripts/Other Scripts/HealthBar.cs
2022-06-18 15:55:39 +01:00

14 lines
255 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class HealthBar : MonoBehaviour
{
public Slider health;
public void Health(int newHealth)
{
health.value = newHealth;
}
}