You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
CrowdControl/Assets/3rd/StompyRobot/SRF/Scripts/Coroutines.cs

19 lines
391 B
C#

3 months ago
namespace SRF
{
using System.Collections;
using UnityEngine;
public static class Coroutines
{
public static IEnumerator WaitForSecondsRealTime(float time)
{
var endTime = Time.realtimeSinceStartup + time;
while (Time.realtimeSinceStartup < endTime)
{
yield return null;
}
}
}
}