public Coroutine StartCoroutine(IEnumerable routine) { var r = new Coroutine(routine); Coroutines.AddLast(r); r.Resume(); return r; }
public bool Step(Coroutine routine, TimeSpan time) { return Condition(); }
public bool Step(Coroutine routine, TimeSpan time) { if (NumFrames <= 0) return true; NumFrames--; return false; }
public bool Step(Coroutine routine, TimeSpan time) { if (Delay <= TimeSpan.Zero) return true; Delay -= time; return false; }
public bool Step(Coroutine routine, TimeSpan time) { return !(Task.Status == TaskStatus.Running); }