Skip to main content

WaitForSeconds

Namespace: MonineEngine.Core.Coroutines

Yields a coroutine until the specified amount of time has passed in seconds.

public class WaitForSeconds

Inheritance ObjectWaitForSeconds

Properties

Duration

How long the routine should be yielded for, in seconds.

public float Duration { get; }

Property Value

Single

Elapsed

How long the routine has been yielded for so far, in seconds.

public float Elapsed { get; set; }

Property Value

Single

Constructors

WaitForSeconds(Single)

Constructs a new WaitForSeconds instance.

public WaitForSeconds(float duration)

Parameters

duration Single
How many seconds the routine will be yielded for.