Пример #1
0
        /// <inheritdoc />
        public ITypedCoroutine <TR> NewTypedCoroutine <TR, T0, T1>(Func <IGenerator, T0, T1, IEnumerator <TR> > fun, T0 t0, T1 t1)
        {
            var coro = new TypedCoroutine <TR>();

            coro.Start = () => fun(coro, t0, t1);
            return(Prepare(coro));
        }
Пример #2
0
        /// <inheritdoc />
        public ITypedCoroutine <TR> NewTypedCoroutine <TR>(Func <IGenerator, IEnumerator <TR> > fun)
        {
            var coro = new TypedCoroutine <TR>();

            coro.Start = () => fun(coro);
            return(Prepare(coro));
        }