Beispiel #1
0
        IEnumerator DelayAction(Action action, TimeSpan dueTime)
        {
            yield return(new WaitForSeconds((float)dueTime.TotalSeconds));

            GameLoopDispatcher.Post(action);
        }
Beispiel #2
0
 public IDisposable Schedule(Action action)
 {
     GameLoopDispatcher.Post(action);
     return(Disposable.Empty);
 }