public override void RemoveAllChildrenWithCleanup(bool doCleanup) { for (int i = 0; i < m_pChildren.count; i++) { ((CCParticleSystem)m_pChildren.Elements[i]).BatchNode = null; } base.RemoveAllChildrenWithCleanup(doCleanup); TextureAtlas.RemoveAllQuads(); }
public override void RemoveAllChildrenWithCleanup(bool cleanup) { // Invalidate atlas index. issue #569 // useSelfRender should be performed on all descendants. issue #1216 CCSprite[] elements = m_pobDescendants.Elements; for (int i = 0, count = m_pobDescendants.count; i < count; i++) { elements[i].BatchNode = null; } base.RemoveAllChildrenWithCleanup(cleanup); m_pobDescendants.Clear(); m_pobTextureAtlas.RemoveAllQuads(); }