private void UnequipmentInSLot(ActionsWithSlotInventory component, GameObject cardInSlot, int index, ICard equippedCard)
    {
        var vectorZero = new Vector3(0, 0f, 0f);

        component.SetVarsSlot(true, false, 0, null);
        cardInSlot.transform.SetParent(_arrayInventory[index].transform);
        cardInSlot.transform.localPosition = vectorZero;
        component = _arrayInventory[index].GetComponent <ActionsWithSlotInventory>();
        component.SetVarsSlot(false, false, index, equippedCard);
        AddItemInventory(equippedCard.GetDataCard().NameCard, index);
        DeleteItemEqupmentCard(_idSlot);
    }
    private void SwitchSLots(ActionsWithSlotInventory component, GameObject cardInInventory,
                             GameObject parent, GameObject slot, ICard equippedCard)
    {
        var vectorZero  = new Vector3(0, 0f, 0f);
        var swithObject = parent.transform.GetChild(0).gameObject;
        var cardObject  = component.CardGame;

        component.SetVarsSlot(false, true, 0, equippedCard);
        cardInInventory.transform.SetParent(parent.transform);
        cardInInventory.transform.localPosition = vectorZero;
        swithObject.transform.SetParent(slot.transform);
        swithObject.transform.localPosition = vectorZero;
        component = slot.GetComponent <ActionsWithSlotInventory>();
        component.SetVarsSlot(false, false, _idSlot, cardObject);
    }
    private void EquipmentInSLot(ActionsWithSlotInventory component, GameObject cardInInventory,
                                 GameObject parent, GameObject slot, int index, ICard equippedCard)
    {
        var vectorZero = new Vector3(0, 0f, 0f);

        component.SetVarsSlot(false, true, index, equippedCard);
        cardInInventory.transform.SetParent(parent.transform);
        cardInInventory.transform.localPosition = vectorZero;
        component = slot.GetComponent <ActionsWithSlotInventory>();
        component.SetVarsSlot(true, false, 0, null);
        //------------очищаем слот в инвентаре
        DeleteItemInventory(_idSlot);
        AddItemEqupmentCard(equippedCard.GetDataCard().NameCard, index);
        //_publisher.Publish(parent, new CustomEventArgs(GameEventName.GoAddCardInDeck,equippedCard));
    }