Ejemplo n.º 1
0
    private void Unequip(int slot)
    {
        Behaviour implant;

        if (slot == 1)
        {
            implant         = equipmentSlot1;
            implant.enabled = false;
            equipmentSlot1  = null;
        }
        if (slot == 2)
        {
            implant         = equipmentSlot2;
            implant.enabled = false;
            equipmentSlot2  = null;
        }
        if (slot == 3)
        {
            implant         = equipmentSlot3;
            implant.enabled = false;
            equipmentSlot3  = null;
        }

        inventoryWindow.SendBackToInventory(slot);
    }