creative-jam-20/Assets/Scripts/UIController.cs
TheDaringDan 989f2ef6fc Enemies now have HP values
They give points on destruction
Points update on UI based on GameManager info
2022-05-15 11:28:52 -04:00

15 lines
294 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using TMPro;
public class UIController : MonoBehaviour
{
[SerializeField]private TMP_Text pointsTxt;
public void UpdatePointsText(float points)
{
pointsTxt.text = points.ToString("0");
}
}