public void AddToGrid(int id, int amount = 1) { Item item = itemDB.GetItemByID(id); switch (item.Category) { case Item.ItemCategory.EQUIPMENT: equipGrid.AddToGrid(item.UIPrefab, amount); break; case Item.ItemCategory.USE: useGrid.AddToGrid(item.UIPrefab, amount); break; case Item.ItemCategory.ETC: etcGrid.AddToGrid(item.UIPrefab, amount); break; } }