예제 #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));
 }