WaitForSeconds
Namespace: MonineEngine.Core.Coroutines
Yields a coroutine until the specified amount of time has passed in seconds.
public class WaitForSeconds
Inheritance Object → WaitForSeconds
Properties
Duration
How long the routine should be yielded for, in seconds.
public float Duration { get; }
Property Value
Elapsed
How long the routine has been yielded for so far, in seconds.
public float Elapsed { get; set; }
Property Value
Constructors
WaitForSeconds(Single)
Constructs a new WaitForSeconds instance.
public WaitForSeconds(float duration)
Parameters
duration Single
How many seconds the routine will be yielded for.