WaitForSeconds Inherits from YieldInstructionSuspends the coroutine execution for the given amount of seconds. WaitForSeconds can only be used with a yield statement in coroutines.
JavaScript
// Prints 0 using UnityEngine; import UnityEngine Constructors
|
