public void SetUIAskPurchase(GoodsData goodsData, int goodsId, RuneRating runeRating) { SetAskPurchaseText(goodsData.Name); SetGoodsAmount(goodsData.RewardAmount); SetGoodsImage(goodsData.Image); SetGoodsPrice(goodsData.PurchasePrice, goodsData.PurchaseCurrency); SetPurchaseCurrencyImage(goodsData.PurchaseCurrency); this.goodsId = goodsId; this.runeRating = runeRating; }
public void SetUIGoods(GoodsData goodsData, int goodsId, RuneRating runeRating) { SetGoodsName(goodsData.Name); SetGoodsImage(goodsData.Image); SetGoodsPrice(goodsData.PurchasePrice); SetPurchaseCurrencyImage(goodsData.PurchaseCurrency); SetGoodsAmount(goodsData.RewardAmount); showAskPurchaseButton.onClick.AddListener(() => { var uiAskPurchaseForRandomRuneGoods = MainManager.instance.backCanvas.uiMainMenu.uiStore.uiAskPurchaseForRandomRuneGoods; uiAskPurchaseForRandomRuneGoods.SetUIAskPurchase(goodsData, goodsId, runeRating); UIManager.Instance.ShowNew(uiAskPurchaseForRandomRuneGoods); }); }