示例#1
0
        public static Asynchronous.IAsyncResult RunOnCoroutine(Func <IPromise, IEnumerator> func)
        {
            CoroutineResult result = new CoroutineResult();

            DoRunOnCoroutine(func(result), result);
            return(result);
        }
示例#2
0
        public static IAsyncResult <TResult> RunOnCoroutine <TResult>(Func <IPromise <TResult>, IEnumerator> func)
        {
            CoroutineResult <TResult> result = new CoroutineResult <TResult>();

            DoRunOnCoroutine(func(result), result);
            return(result);
        }
示例#3
0
        public static Asynchronous.IAsyncResult RunOnCoroutine(IEnumerator routine)
        {
            CoroutineResult result = new CoroutineResult();

            DoRunOnCoroutine(routine, result);
            return(result);
        }