I need a start up timer that starts as soon as the game does.

Script in C#. Timer in seconds. Timer stops as soon as win conditions have been achieved.

Time.time?

1 Like

I wanted to make it so that when the song ends = game over. So how do I do that? Ignore the 1st request.

public float songDuration = 180f;

void Update()
{
     if (Time.time > songDuration)
           GameOver();
}
1 Like

Thank you!!!

A coroutine would be better.

For such a simple thing, Invoke() would be enough.

1 Like