public bool Update(GameTime gameTime) { if (Current == null) { return(false); } if (!Current.Update(gameTime)) { Current.Dispose(); Current = null; if (!enumerator.MoveNext()) { return(false); } Current = enumerator.Current; } return(true); }
public UpdrawEnumerator(IEnumerable <Updraw> enumerable) { enumerator = enumerable.GetEnumerator(); enumerator.MoveNext(); Current = enumerator.Current; }