public static SimpleCoroutineAwaiter <AssetBundle> GetAwaiter(this AssetBundleCreateRequest instruction)
    {
        var awaiter = new SimpleCoroutineAwaiter <AssetBundle>();

        RunOnUnityScheduler(() => AsyncCoroutineRunner.Instance.StartCoroutine(InstructionWrappers.AssetBundleCreateRequest(awaiter, instruction)));
        return(awaiter);
    }
예제 #2
0
        public static SimpleCoroutineAwaiter <AssetBundle> GetAwaiter(this AssetBundleCreateRequest instruction)
        {
            var awaiter    = new SimpleCoroutineAwaiter <AssetBundle>();
            var enumerator = InstructionWrappers.AssetBundleCreateRequest(awaiter, instruction);

            RunOnUnityScheduler(() => RunCoroutine(enumerator));
            return(awaiter);
        }
예제 #3
0
        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);
        }