private void UpdateInventory() { EquipItemTable.EquipItemData[] items = null; int start = currentPageIndex * ONE_PAGE_EQUIP_NUM; int last = start + ONE_PAGE_EQUIP_NUM; items = GetEquips(start, last); if (items != null) { SetPageNumText((Enum)UI.LBL_PAGE_NOW, currentPageIndex + 1); SetDynamicList((Enum)UI.GRD_INVENTORY, string.Empty, items.Length, false, (Func <int, bool>) null, (Func <int, Transform, Transform>) null, (Action <int, Transform, bool>) delegate(int i, Transform t, bool isRecycle) { SetActive(t, true); EquipItemTable.EquipItemData equipItemData = items[i]; EquipItemSortData equipItemSortData = new EquipItemSortData(); EquipItemInfo equipItemInfo = new EquipItemInfo(); equipItemInfo.tableData = equipItemData; equipItemInfo.SetDefaultData(); equipItemSortData.SetItem(equipItemInfo); ITEM_ICON_TYPE iconType = ItemIcon.GetItemIconType(equipItemData.type); bool flag = !MonoBehaviourSingleton <AchievementManager> .I.CheckEquipItemCollection(equipItemData); if (flag) { iconType = ITEM_ICON_TYPE.UNKNOWN; } bool isNew = false; GET_TYPE getType = GET_TYPE.PAY; if (equipItemData != null) { getType = equipItemData.getType; } ItemIcon itemIcon = ItemIconDetailSmall.CreateSmallListItemIcon(iconType, equipItemSortData, t, isNew, start + i + 1, getType); if (!flag) { itemIcon.button.set_enabled(true); SetEvent(itemIcon._transform, "DETAIL", new object[2] { ItemDetailEquip.CURRENT_SECTION.EQUIP_LIST, equipItemData }); } else { itemIcon.button.set_enabled(false); SetEvent(itemIcon._transform, string.Empty, 0); } }); } }