private void CheckForCompletion(Action action)
 {
     if (asyncOp.isDone)
     {
         action();
     }
     else
     {
         NextFrameHelper.Enqueue(() => CheckForCompletion(action));
     }
 }
Exemple #2
0
 public override void OnCompleted(Action action) => NextFrameHelper.Enqueue(action);
 public override void OnCompleted(Action action) => NextFrameHelper.Enqueue(() => CheckForCompletion(action));