19 lines
391 B
C#
19 lines
391 B
C#
|
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;
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
}
|