private void SetActiveTab(InventoryTabButton newTab) { if (activeTabButton != null) { activeTabButton.SetIconColor(UNSELECTED_TAB_COLOR); } newTab.SetIconColor(SELECTED_TAB_COLOR); activeTabButton = newTab; }
private void HandleTabChange(InventoryTabButton newTab) { if (selectedEquipmentSlotID != EquipmentSlotEnum.None) { return; } SetActiveTab(newTab); OpenActiveTabPanel(); }