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); }
protected override void OnEnd(TElement element) { _operation.OnEnd(element); }