What does this line do in a coroutine?
yield return new WaitForSeconds(2);
- Pauses execution for 2 seconds
- Ends the current game session
- Loads a texture from the disk
- Doubles the current frame rate
The coroutine suspends and resumes after the given delay.
Play Game Dev ▸