public bool Run() { if (_t != null) { if (!_t.Finish()) { return(true); } else { _t = null; } } if (_c.MoveNext()) { return(true); } else { if (OnFinished != null) { OnFinished(); } } return(false); }
public void StartWaitForSeconds(TaskWaitForSeconds t) { _t = t; }