コード例 #1
0
 public IDisposable Schedule(Action action)
 {
     GameLoopDispatcher.Post(action);
     return(Disposable.Empty);
 }
コード例 #2
0
        IEnumerator DelayAction(Action action, TimeSpan dueTime)
        {
            yield return(new WaitForSeconds((float)dueTime.TotalSeconds));

            GameLoopDispatcher.Post(action);
        }