How do you wait in Unity?

I remember I used to yield WaitForSeconds(2);

Those were the days.

This is what I tried.

public IEnumerator wait(int secs)
{
yield return new WaitForSeconds(secs);
}

That’ll work just fine provided you actually do something after you wait - which that code does not.

1 Like

Oh that’s weird then. I’ll try again. Thanks :slight_smile: