public static CoroutineBuilder BuildDelayed(this ICoroutineProcessor processor, float delaySeconds) { var result = new CoroutineBuilder(processor); result.WaitForSeconds(delaySeconds); return(result); }
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); }