public void OnSectionButtonClicked(int num) { Section section = (num == (int)Section.EYE) ? Section.EYE : (num == (int)Section.MOUTH) ? Section.MOUTH : Section.OUTFIT; var itemsToDisplay = itemsData.GetItemsByType(section) as Item[]; InstantiateItems(itemsToDisplay); }