namespace UnityAsync { public struct WaitForSeconds : IAwaitInstruction { readonly float finishTime; bool IAwaitInstruction.IsCompleted() => AsyncManager.CurrentTime >= finishTime; /// /// Waits for the specified number of seconds to pass before continuing. /// public WaitForSeconds(float seconds) => finishTime = AsyncManager.CurrentTime + seconds; } }