Yield.Wait

Static Method in Yield

Declaration

public static WaitForSeconds Wait(float seconds)

Description

Suspends the coroutine execution for the given amount of seconds using scaled time. The amount of seconds is cached as an integer in milliseconds to create more cache hits, but this results in a small precision loss in certain situations.

Parameters

secondsThe number of seconds to wait.

Returns

WaitForSecondsThe yield statement.