Example #1
0
    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;
 }
Example #5
0
 internal bool m_42(ShopItemConfig n)
 {
     return (n.type == this.type);
 }
Example #6
0
 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);
     }
 }
Example #7
0
 internal bool m_42(ShopItemConfig n)
 {
     return(n.type == this.type);
 }