$ ./guess_the_languageGame Dev
Game Dev · medium · #33

What does this line do in a coroutine?

yield return new WaitForSeconds(2);
  1. Pauses execution for 2 seconds
  2. Ends the current game session
  3. Loads a texture from the disk
  4. Doubles the current frame rate
The coroutine suspends and resumes after the given delay.
Play Game Dev ▸