public void Remove(Coroutine coroutine) { if (coroutine.ID == 0) { return; } coroutinesDict.Remove(coroutine.ID); } public void Add(Coroutine coroutine)
private bool NextStep() { //LogConsole.Debug("Coroutine.NextStep"); if (disposed) { return(false); } if (MoveNext()) { CheckYield(); return(true); } else { coroutineManager.Remove(this); Dispose(); return(false); } }