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"); } }