Beispiel #1
0
 // Token: 0x06005892 RID: 22674 RVA: 0x001EB038 File Offset: 0x001E9438
 public static void DispatchToMain(Action action)
 {
     if (VRCWorker.IsMainThread)
     {
         action();
     }
     else
     {
         VRCWorker.AddJob <object>(() => new object(), delegate(object b)
         {
             action();
         });
     }
 }
Beispiel #2
0
 // Token: 0x06005891 RID: 22673 RVA: 0x001EAFC8 File Offset: 0x001E93C8
 public static void DispatchToMain(Func <IEnumerator> coroutine)
 {
     if (VRCWorker.IsMainThread)
     {
         VRCWorker.Instance.StartCoroutine(coroutine());
     }
     else
     {
         VRCWorker.AddJob <object>(() => new object(), delegate(object b)
         {
             VRCWorker.Instance.StartCoroutine(coroutine());
         });
     }
 }