Beispiel #1
0
 public static void StartCoroutines(IEnumerator[] coroutines)
 {
     foreach (var coroutine in coroutines)
     {
         AsyncManager.StartCoroutine(coroutine);
     }
 }
Beispiel #2
0
 public void OnCompleted(Action continuation)
 {
     if (AsyncManager.InUnityContext)
     {
         AsyncManager.StartCoroutine(ContinuationCoroutine(continuation));
     }
     else
     {
         AsyncManager.UnitySyncContext.Send(postCallback, AsyncManager.StartCoroutine(ContinuationCoroutine(continuation)));
     }
 }
Beispiel #3
0
        IEnumerator ContinuationCoroutine(Action continuation)
        {
            yield return(AsyncManager.StartCoroutine(coroutine));

            continuation();
        }
Beispiel #4
0
 private static void StartInitCoroutines()
 {
     AsyncManager.StartCoroutine(SetupCommands());
     AsyncManager.StartCoroutine(SetupAudio());
     AsyncManager.StartCoroutine(CheckUpdates());
 }
Beispiel #5
0
 public static Coroutine StartCoroutine(IEnumerator coroutine)
 {
     return(AsyncManager.StartCoroutine(coroutine));
 }