예제 #1
0
        public override bool Update(TElement entity, SAMTime gameTime, InputState istate)
        {
            if (current == null)
            {
                if (opQueue.Count == 0)
                {
                    return(false);
                }

                current = opQueue.Dequeue();
                current.OnStart(entity);
            }

            bool r = current.Update(entity, gameTime, istate);

            if (!r)
            {
                current.OnEnd(entity);
                current = null;
            }

            return(true);
        }
예제 #2
0
 protected override void OnEnd(TElement element)
 {
     _operation.OnEnd(element);
 }