14 lines
255 B
C#
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;
|
|
}
|
|
} |