This repository has been archived on 2025-04-11. You can view files and clone it, but cannot push or open issues or pull requests.
revival-survival/Assets/Scripts/HealthCounterTest.cs
2018-07-02 20:49:00 -05:00

24 lines
424 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class HealthCounterTest : MonoBehaviour {
public LevelManager LM;
public Text HealthDisplay;
public int health;
// Use this for initialization
void Start () {
health = LM.hp;
}
// Update is called once per frame
void Update () {
health = LM.hp;
HealthDisplay.text = "Health: " + health;
}
}