Пример #1
0
        override public void Print()
        {
            DLink pNode = this.poHead;

            while (pNode != null)
            {
                Component pComponent = (Component)pNode;
                pComponent.Print();

                pNode = pNode.pNext;
            }
        }
Пример #2
0
        private void PrintMyChildren()
        {
            DLink pNode = this.poHead;

            while (pNode != null)
            {
                Component pComponent = (Component)pNode;
                pComponent.Print();

                pNode = pNode.pNext;
            }
            Debug.WriteLine("<---- Done with composite");
        }
Пример #3
0
        public override void Print()
        {
            Debug.WriteLine(" GameObject Name: {0} ({1})", this.GetName(), this.GetHashCode());

            DLink pNode = this.poHead;

            while (pNode != null)
            {
                Component pComponent = (Component)pNode;
                pComponent.Print();

                pNode = pNode.pNext;
            }
        }
Пример #4
0
        public override void Print()
        {
            Debug.WriteLine("Composite GO: {0} ({1})", this.GetName(), this.GetHashCode());

            DLink pSafety = this.poHead;

            DLink pNode = pSafety;

            while (pNode != null)
            {
                Component pComp = (Component)pNode;
                pComp.Print();

                pNode = pNode.pNext;
            }
        }