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