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