using UnityEngine;
using UnityEngine.UI;
public class score : MonoBehaviour{
public Transform player;
public Text TMPro;
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
TMP_Text.text = player.position.z.ToString();
}
}
can someone tell me what im doing wrong and what i should do instead