Exemplo n.º 1
0
 private static IEnumerator _RunOnDelegate(Run aRun, SimpleEvent aDelegate, System.Action aAction)
 {
     aRun.isDone = false;
     System.Action action = () => {
         aAction();
     };
     aDelegate.Add(action);
     while (!aRun.abort && aAction != null)
     {
         yield return(null);
     }
     aDelegate.Remove(action);
     aRun.isDone = true;
 }
Exemplo n.º 2
0
 private static IEnumerator _RunOnDelegate(Run aRun, SimpleEvent aDelegate, System.Action aAction)
 {
     aRun.isDone = false;
     System.Action action = () => {
         aAction();
     };
     aDelegate.Add(action);
     while (!aRun.abort && aAction != null)
     {
         yield return null;
     }
     aDelegate.Remove(action);
     aRun.isDone = true;
 }