private void OnRechargeBtnClick() { CSGoldJewelBuy csGoldJewelBuy = new CSGoldJewelBuy() { LevelId = curGoldConfig.LevelId }; ProtocalManager.Instance().SendCSGoldJewelBuy(csGoldJewelBuy, (scGoldJewelBuy) => { foreach (var elem in scGoldJewelBuy.CurrencyInfo) { StaticData.UpdateWareHouseItems(elem.GoodsId, (int)elem.Count); } StaticData.CreateToastTips("购买金币成功!"); }, (error) => {}); }
private void OnRechargeBtnClick() { CSGoldJewelBuy csGoldJewelBuy = new CSGoldJewelBuy() { LevelId = curDiamondConfig.LevelId }; ProtocalManager.Instance().SendCSGoldJewelBuy(csGoldJewelBuy, (scGoldJewelBuy) => { foreach (var elem in scGoldJewelBuy.CurrencyInfo) { StaticData.UpdateWareHouseItems(elem.GoodsId, (int)elem.Count); } StaticData.CreateToastTips("购买钻石成功!"); StaticData.playerInfoData.userInfo.IsFirstDiscounts = false; foreach (Transform child in lsRechargeDiamond.content) { child.GetComponent <UIPoolItemRechargeDiamond>().setFirstFlagActive(false); } }, (error) => {}); }