Esempio n. 1
0
    public void DeactiveAttachObject(GameObject parent, GameObject child)
    {
        if (null == _mTagPointRootGameObject)
        {
            return;
        }

        AttachmentSlot attachmentSlot = null;
        bool           isContain      = _mAttachmentSlotList.TryGetValue(parent.GetInstanceID(), out attachmentSlot);

        if (!isContain)
        {
            return;
        }

        if (child.active)
        {
            attachmentSlot.DeactiveAttachObject(child);
        }
    }