Beispiel #1
0
        public virtual void Update(GameTime gameTime)
        {
            Director.UpdateCalls++;

            if (!this.Active)
            {
                return;
            }

            if (this.UpdateChildren)
            {
                int childrenCount = this.Children.Count;
                for (int i = 0; i < childrenCount; i++)
                {
                    this.Children[i].Update(gameTime);
                }
            }

            for (int i = 0; i < this.activities.Count; i++)
            {
                this.activities[i].Update(gameTime);
            }

            WasTouching = Touching;
            Touching.Clear();
        }