Beispiel #1
0
    private void itemEqp(InventoryHolder user, GameObject item, string slotName)
    {
        int itemCount = user.GetItemCount(item.GetComponent <Item>());

        if (itemCount < 1)
        {
            itemGive(user, item, 1);
        }
        user.ForceEquip(item.GetComponent <Item>(), slotName);
    }