Example #1
0
        private static IEnumerator Future(Runnable p, float v)
        {
            yield return(new WaitForSecondsRealtime(v));

            p?.Invoke();
        }
Example #2
0
 public static void DoAfterFrames(Runnable p, int frames)
 {
     CheckRefe();
     refe.StartCoroutine(WaitFramesAndDo(frames, p));
 }
Example #3
0
        private static IEnumerator WaitFramesAndDo(int frames, Runnable f)
        {
            yield return(Frames(frames));

            f?.Invoke();
        }
Example #4
0
 public static void DoAfter(Runnable p, float v)
 {
     CheckRefe();
     refe.StartCoroutine(Future(p, v));
 }