void SlotAction() { if (!inventoryUI.GetSetIsUiClosed && slotType == SlotChestType.Tools) { equipManager.SetActiveStateTool(equipManager.GetToolTypeByIndex(slotPosition), !equipManager.GetToolActive(equipManager.GetToolTypeByIndex(slotPosition))); SetToggleOutline(equipManager.GetToolActive(equipManager.GetToolTypeByIndex(slotPosition))); } else { inventoryUI.OnPressedInventoryButton(); } }