コード例 #1
0
        public static CoroutineBuilder BuildDelayed(this ICoroutineProcessor processor, float delaySeconds)
        {
            var result = new CoroutineBuilder(processor);

            result.WaitForSeconds(delaySeconds);

            return(result);
        }
コード例 #2
0
        public static CoroutineBuilder BuildDelayed <TContext>(this ICoroutineProcessor processor, float delaySeconds,
                                                               TContext context = null) where TContext : class, new()
        {
            if (context == null)
            {
                context = new TContext();
            }
            var result = new CoroutineBuilder <TContext>(processor, context);

            result.WaitForSeconds(delaySeconds);

            return(result);
        }