public void UpdateState() { lockedPanel.gameObject.SetActive(!ConfigModel.Instance.IsShopItemAvailable(itemId, GameModel.Instance.currLevel)); ShopItemConfig itemConfig = ConfigModel.Instance.GetConfigForShopItem(itemId); SetAvailability(itemConfig.world, itemConfig.level); }
public void SetItem(ShopItemConfig config) { this.itemConfig = config; this.UpdateItemInfo(); }
public ReqShop ShopBuyItem(ShopItemConfig item) { ReqShop component = GameObjectUtil.InstantiateItemAsChildOf(this.reqShopPrefab, base.gameObject).GetComponent<ReqShop>(); component.BuyItem(item); return component; }
public ReqShop GetShopOrderOfPayEco(ShopItemConfig item) { ReqShop component = GameObjectUtil.InstantiateItemAsChildOf(this.reqShopPrefab, base.gameObject).GetComponent<ReqShop>(); component.GetEcoPayOrder(item); return component; }
internal bool m_42(ShopItemConfig n) { return (n.type == this.type); }
public void SetShopItems(ShopItemConfig[] items) { if (items == null) { this.shopItemsList = new List<ShopItemConfig>(); this.shopItems = new Dictionary<int, ShopItemConfig>(); } else { this.shopItemsList = items.ToList<ShopItemConfig>(); if (f_am_cacheC == null) { f_am_cacheC = n => n.id; } if (f_am_cacheD == null) { f_am_cacheD = n => n; } this.shopItems = this.shopItemsList.ToDictionary<ShopItemConfig, int, ShopItemConfig>(f_am_cacheC, f_am_cacheD); } }
internal bool m_42(ShopItemConfig n) { return(n.type == this.type); }