public static SimpleCoroutineAwaiter <UnityEngine.Object> GetAwaiter(this AssetBundleRequest instruction) { var awaiter = new SimpleCoroutineAwaiter <UnityEngine.Object>(); RunOnUnityScheduler(() => AsyncCoroutineRunner.Instance.StartCoroutine(InstructionWrappers.AssetBundleRequest(awaiter, instruction))); return(awaiter); }
public static SimpleCoroutineAwaiter <UnityEngine.Object> GetAwaiter(this AssetBundleRequest instruction) { var awaiter = new SimpleCoroutineAwaiter <UnityEngine.Object>(); UnitySystem.RunOnUnityScheduler(() => UnitySystem.SystemBehavior.StartCoroutine( InstructionWrappers.AssetBundleRequest(awaiter, instruction))); return(awaiter); }
public static SimpleCoroutineAwaiter <Object> GetAwaiter(this AssetBundleRequest instruction) { var awaiter = new SimpleCoroutineAwaiter <Object>(); var enumerator = InstructionWrappers.AssetBundleRequest(awaiter, instruction); RunOnUnityScheduler(() => RunCoroutine(enumerator)); return(awaiter); }