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);
    }
Пример #2
0
        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);
        }
Пример #3
0
        public static SimpleCoroutineAwaiter <Object> GetAwaiter(this AssetBundleRequest instruction)
        {
            var awaiter    = new SimpleCoroutineAwaiter <Object>();
            var enumerator = InstructionWrappers.AssetBundleRequest(awaiter, instruction);

            RunOnUnityScheduler(() => RunCoroutine(enumerator));
            return(awaiter);
        }