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

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