private void OnSelectItem(GameObject go) { LimitedShopListItem component = (LimitedShopListItem)go.GetComponent <LimitedShopListItem>(); if (Object.op_Equality((Object)component, (Object)null)) { return; } GlobalVars.LimitedShopItem = component; GlobalVars.ShopType = EShopType.Limited; FlowNode_GameObject.ActivateOutputLinks((Component)this, 101); }
private void RefreshItems(JSON_ShopListArray.Shops[] shops) { this.NowOpenShopCount = shops.Length; for (int count = this.limited_shop_list.Count; count < this.NowOpenShopCount; ++count) { GameObject gameObject = (GameObject)Object.Instantiate <GameObject>((M0)this.ItemTemplate); LimitedShopListItem component = (LimitedShopListItem)gameObject.GetComponent <LimitedShopListItem>(); component.SetShopList(shops[count]); gameObject.get_transform().SetParent(((Component)this).get_transform()); gameObject.get_transform().set_localScale(this.ItemTemplate.get_transform().get_localScale()); ((ListItemEvents)gameObject.GetComponent <ListItemEvents>()).OnSelect = new ListItemEvents.ListItemEvent(this.OnSelectItem); gameObject.SetActive(true); this.limited_shop_list.Add(component); } }