Beispiel #1
0
void BoneNode::removeChild(Node* child, bool cleanup /* = true */)
{
    ssize_t index = _children.getIndex(child);
    if (index != cocos2d::CC_INVALID_INDEX)
    {
        removeFromChildrenListHelper(child);
        Node::removeChild(child, cleanup);
    }
}
Beispiel #2
0
void BoneNode::removeChild(Node* child, bool cleanup /* = true */)
{
    Node::removeChild(child, cleanup);
    removeFromChildrenListHelper(child);
}