Cloned from the Team project repo
This commit is contained in:
14
Assets/Assets_And_Scenes/Scripts/Other Scripts/HealthBar.cs
Normal file
14
Assets/Assets_And_Scenes/Scripts/Other Scripts/HealthBar.cs
Normal file
@ -0,0 +1,14 @@
|
||||
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;
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user