Exemplo n.º 1
0
        public static Asynchronous.IAsyncResult RunOnCoroutine(Func <IPromise, IEnumerator> func)
        {
            CoroutineResult result = new CoroutineResult();

            DoRunOnCoroutine(func(result), result);
            return(result);
        }
Exemplo n.º 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);
        }
Exemplo n.º 3
0
        public static Asynchronous.IAsyncResult RunOnCoroutine(IEnumerator routine)
        {
            CoroutineResult result = new CoroutineResult();

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