Пример #1
0
        public override void addChild(CCNode child, int zOrder, int tag)
        {
            Debug.Assert(child != null);

            base.addChild(child, zOrder, tag);

            if (m_bUseBatchNode)
            {
                Debug.Assert(((CCSprite)child).Texture.Name == m_pobTextureAtlas.Texture.Name);
                int index = m_pobBatchNode.atlasIndexForChild((CCSprite)child, zOrder);
                m_pobBatchNode.insertChild((CCSprite)child, index);
            }

            m_bHasChildren = true;
        }