I can’t get the text ui to display the number of seconds the user has been in the game
public Text time;
private int value = 0;
void Start () {
textloop();
}
// Update is called once per frame
void Update () {
}
public IEnumerator textloop()
{
while (true)
{
yield return new WaitForSeconds(1);
time.text = "Time: " + value.ToString();
value++;
}
}