private static IEnumerator Future(Runnable p, float v) { yield return(new WaitForSecondsRealtime(v)); p?.Invoke(); }
public static void DoAfterFrames(Runnable p, int frames) { CheckRefe(); refe.StartCoroutine(WaitFramesAndDo(frames, p)); }
private static IEnumerator WaitFramesAndDo(int frames, Runnable f) { yield return(Frames(frames)); f?.Invoke(); }
public static void DoAfter(Runnable p, float v) { CheckRefe(); refe.StartCoroutine(Future(p, v)); }