示例#1
0
        public override void Visit()
        {
            base.Visit();

            int cnt = _children.Count;

            for (int i = 0; i < cnt; i++)
            {
                DisplayObject child = _children[i];
                if (child.visible)
                {
                    child.Visit();
                }
            }

            if (gOwner != null && (gOwner is GComponent))
            {
                ((GComponent)gOwner).OnUpdate();
            }
        }