public void Init(BuyPageEntity buypage) { costrmb = buypage.cost; this.pageid = buypage.id; buyEvent = buypage.buyEvent; this.txt_cost.text = buypage.cost.ToString(); }
private void OnClickShowRunePageBuyPanelButton() { BuyPageEntity entity = new BuyPageEntity(); entity.id = controller.GetPageInfo().Count; entity.cost = controller.GetRunePageUnLockCost(entity.id + 1); entity.buyEvent = (int id) => { controller.SendBuyRunePage(controller.GetPageInfo().Count); }; ShowRunePopViewUI(entity, RunePopType.RunePageBuyUI); }