public static void StartCoroutines(IEnumerator[] coroutines) { foreach (var coroutine in coroutines) { AsyncManager.StartCoroutine(coroutine); } }
public void OnCompleted(Action continuation) { if (AsyncManager.InUnityContext) { AsyncManager.StartCoroutine(ContinuationCoroutine(continuation)); } else { AsyncManager.UnitySyncContext.Send(postCallback, AsyncManager.StartCoroutine(ContinuationCoroutine(continuation))); } }
IEnumerator ContinuationCoroutine(Action continuation) { yield return(AsyncManager.StartCoroutine(coroutine)); continuation(); }
private static void StartInitCoroutines() { AsyncManager.StartCoroutine(SetupCommands()); AsyncManager.StartCoroutine(SetupAudio()); AsyncManager.StartCoroutine(CheckUpdates()); }
public static Coroutine StartCoroutine(IEnumerator coroutine) { return(AsyncManager.StartCoroutine(coroutine)); }