Esempio n. 1
0
 public static void StartRoutine(TaskManager.CoroutineInfo info)
 {
     if (!TaskManager.IsMainThread)
     {
         object obj = TaskManager.syncRoot;
         lock (obj)
         {
             TaskManager.PendingCoroutineInfo.Add(info);
         }
     }
     else
     {
         TaskManager.Instance.StartCoroutine(TaskManager.Instance.RunCoroutineInfo(info));
     }
 }
Esempio n. 2
0
 private IEnumerator RunCoroutineInfo(TaskManager.CoroutineInfo info)
 {
     TaskManager.< RunCoroutineInfo > c__IteratorD <RunCoroutineInfo> c__IteratorD = new TaskManager.< RunCoroutineInfo > c__IteratorD();