private void RefreshUI() { levelPanel.SetData(); shopGoods.SetData <ShopGoodsItem, TableShop>(TableShop.GetAll().ToList(a => a.type == 0) , (index, item, _data) => { item.SetData(_data.id); }); vipBtn.targetImage.SetGrey(!D.I.IsVip()); vipRewardText.gameObject.SetActive(D.I.IsVip()); }
public void Init() { var module = StandardPurchasingModule.Instance(); appStore = module.appStore; var builder = ConfigurationBuilder.Instance(StandardPurchasingModule.Instance()); foreach (var t in TableShop.GetAll()) { builder.AddProduct(t.productID, (ProductType)t.type, new IDs { { t.productID, GooglePlay.Name }, { t.productID, AppleAppStore.Name } }); } builder.Configure <IGooglePlayConfiguration>().SetPublicKey("MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAt1lvHFO1vq2djnUEgv3PGrTsieVKtLUIRSlW99wnqHZMYLRoXnK0qOnWU6Lz/jt07LkktqJzWrW+OE/w67VtLJMrycBaA0eCDqErr62pg4HkXK4tS9+0oJJxJ9pvr+QACLigJlHefPGtoZ+JumUILnxM6dPwW7xalxaCTmhSpfg3CVZ75NXTmIx4X5qLAHFPOCPrjdTTZPdX7zZMRTdIYAAseXn4X+BE2gRhhyCVA0T9+m1AD8lC+wftuQz+xRksYjEj9XgNJJ3A0Z9QKr3MZoyqYQ0+6HPpNzKY6owf7t3fix36oJl4OYu+99ksO2p2oqVrpbPSJVWFkmbJRrFepQIDAQAB"); builder.useCatalogProvider = false; UnityPurchasing.Initialize(this, builder); }