private void showItemStatus() { if (OwnedPanel != null) { OwnedPanel.SetActive(item.HasItem()); Collect.SetActive(item.IsAvailable() && !item.HasItem()); IconButton.enabled = item.IsAvailable() && !item.HasItem(); } }
private void createItems() { bool flag = true; for (int i = 0; i < EventItems.Length; i++) { MarketplaceEventItem item = new MarketplaceEventItem(); item.EventItemDefinition = EventItems[i]; if (ExistingRowItem == null) { Content.LoadAsync(delegate(string path, GameObject prefab) { onEventItemButtonPrefabLoaded(prefab, item); }, eventItemButtonContentKey); } else { ExistingRowItem.SetItem(item, ItemIconImageMaterial, ItemIconBgColor, ItemIconPenguinColor, EventNameForBI); } if (flag && !item.IsAvailable()) { flag = false; } } if (ItemsBlocker != null) { ItemsBlocker.SetActive(!flag); } }