rise-and-swine/Assets/Scripts/Assembly-CSharp/WaitForRealSeconds.cs
2023-02-25 23:04:03 -05:00

19 lines
312 B
C#

using UnityEngine;
public class WaitForRealSeconds : CustomYieldInstruction
{
public WaitForRealSeconds(float time)
{
this.endTime = Time.realtimeSinceStartup + time;
}
public override bool keepWaiting
{
get
{
return Time.realtimeSinceStartup < this.endTime;
}
}
private float endTime;
}