public IDisposable Schedule(Action action) { GameLoopDispatcher.Post(action); return(Disposable.Empty); }
IEnumerator DelayAction(Action action, TimeSpan dueTime) { yield return(new WaitForSeconds((float)dueTime.TotalSeconds)); GameLoopDispatcher.Post(action); }