Esempio n. 1
0
 void Callback(IAsyncResult ar)
 {
     try {
         task.EndInvoke(ar);
     } catch (Exception e) {
         UnityEngine.Debug.LogException(e);
     }
     try {
         if (onComplete != null)
         {
             onComplete();
         }
     } catch (Exception e) {
         UnityEngine.Debug.LogException(e);
     }
     try {
         if (this.onCompleteUnity != null)
         {
             while (!EiUpdateSystem.AddUnityThreadCallbackToQueue(this))
             {
                 ;
             }
         }
     } catch (Exception e) {
         UnityEngine.Debug.LogException(e);
     }
 }
Esempio n. 2
0
 void Callback(IAsyncResult ar)
 {
     secondThread.EndInvoke(ar);
     while (!EiUpdateSystem.AddUnityThreadCallbackToQueue(this))
     {
         ;
     }
 }