Пример #1
0
        public static CoroutineAsyncBridge Start <T>(T awaitTarget)
        {
            var bridge = new CoroutineAsyncBridge();

            MainThreadDispatcher.StartCoroutine(bridge.Run(awaitTarget));
            return(bridge);
        }
Пример #2
0
 public static CoroutineAsyncBridge <AsyncOperation> GetAwaiter(this AsyncOperation asyncOperation)
 {
     return(CoroutineAsyncBridge <AsyncOperation> .Start(asyncOperation));
 }
Пример #3
0
 public static CoroutineAsyncBridge GetAwaiter(this IEnumerator coroutine)
 {
     return(CoroutineAsyncBridge.Start(coroutine));
 }
Пример #4
0
 public static CoroutineAsyncBridge <WWW> GetAwaiter(this WWW www)
 {
     return(CoroutineAsyncBridge <WWW> .Start(www));
 }