public virtual void removeChildAndCleanup(CCNode child, bool cleanup){ if (child == null) return; NSUtils.Assert(_children.Contains(child), "This node does not contain the specified child."); detachChild(child, cleanup); }
public void removeFromParentAndCleanup(bool cleanup) { if (_parent != null) { _parent.removeChildAndCleanup(this, cleanup); } }