public void Init(ICoroutineTimeGetter time) { if (this.time != null) { throw new CoroutineException("Cannnot reuse yield."); } this.time = time; this.Start = time.Now; }
public void Init(ICoroutineTimeGetter time) { foreach (var arg in Sequence) { if (arg is ICoroutineYieldNeedInit yield) { yield.Init(time); } } }