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