Пример #1
0
        private static IEnumerator Future(Runnable p, float v)
        {
            yield return(new WaitForSecondsRealtime(v));

            p?.Invoke();
        }
Пример #2
0
        private static IEnumerator WaitFramesAndDo(int frames, Runnable f)
        {
            yield return(Frames(frames));

            f?.Invoke();
        }