Exemplo 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);
     }
 }
Exemplo n.º 2
0
 void Callback(IAsyncResult ar)
 {
     secondThread.EndInvoke(ar);
     while (!EiUpdateSystem.AddUnityThreadCallbackToQueue(this))
     {
         ;
     }
 }