I have a text mesh that is suppose to count down from 60 to 0 and it does that fine in the inspector during run time. But it doesn’t change on the screen. It just shows “Time:” which is what I have it to say before I run the game and the script activates. So what I need to know is if my code is wrong or if you can’t change a text like that? Btw its 2d Text Mesh. and here is some of my code that effects it.
var timeText = GetComponentInChildren(tk2dTextMesh);
timeText.text = "Time: " + gameTimeLeft.ToString();
if(gameTimeLeft > 0 && timeCounter <= Time.time)
{
gameTimeLeft--;
timeCounter = Time.time+1;
}