public void updateShopList(ShopListSample sample) { this.sample = sample; ResourcesManager.Instance.LoadAssetBundleTexture(ResourcesManager.SHOP_LIST + sample.iconId, bgIcon); if (UserManager.Instance.self.getUserLevel() < sample.activeLv) { openLv.gameObject.SetActive(true); openLv.text = LanguageConfigManager.Instance.getLanguage("shop07l", sample.activeLv.ToString()); this.GetComponent <BoxCollider>().enabled = false; bgIcon.color = new Color32(128, 128, 128, 255); } else { this.GetComponent <BoxCollider>().enabled = true; openLv.gameObject.SetActive(false); bgIcon.color = new Color32(255, 255, 255, 255); } updateTime(); if (sample.shopLag == "shengmi") { updateMysticalShow(); } else if (sample.shopLag == "tihui") { updateTeHuishow(); } timer = TimerManager.Instance.getTimer(UserManager.TIMER_DELAY); timer.addOnTimer(refreshData); timer.start(); }
public override void parseConfig(string str) { ShopListSample sample = new ShopListSample(str); if (list == null) { list = new List <ShopListSample> (); } list.Add(sample); }