Esempio n. 1
0
        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);
        }
Esempio n. 2
0
 public UpdrawEnumerator(IEnumerable <Updraw> enumerable)
 {
     enumerator = enumerable.GetEnumerator();
     enumerator.MoveNext();
     Current = enumerator.Current;
 }