예제 #1
0
 void Callback(IAsyncResult ar)
 {
     try {
         task.EndInvoke(ar);
     }
     catch (Exception e) {
         UnityEngine.Debug.LogException(e);
     }
     try {
         if (onAnyThreadTrigger != null)
         {
             onAnyThreadTrigger();
         }
     }
     catch (Exception e) {
         UnityEngine.Debug.LogException(e);
     }
     try {
         if (this.onUnityThreadTrigger != null)
         {
             while (!UpdateSystem.AddUnityThreadCallbackToQueue(this))
             {
                 ;
             }
         }
     }
     catch (Exception e) {
         UnityEngine.Debug.LogException(e);
     }
 }
예제 #2
0
 public EiCallUnityThread(Action method)
 {
     this.method = method;
     while (!UpdateSystem.AddUnityThreadCallbackToQueue(this))
     {
     }
 }
예제 #3
0
 void Callback(IAsyncResult ar)
 {
     secondThread.EndInvoke(ar);
     while (!UpdateSystem.AddUnityThreadCallbackToQueue(this))
     {
         ;
     }
 }