creative-jam-20/Assets/Scripts/UIController.cs
2022-05-15 11:06:52 -04:00

21 lines
448 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using TMPro;
public class UIController : MonoBehaviour
{
[SerializeField]private PlayerController player;
[SerializeField]private TMP_Text pointsTxt;
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
pointsTxt.text = player.GetPoints().ToString();
}
}