| | |
| | | itemCell.Init(cellModel);
|
| | | itemCell.button.SetListener(() =>
|
| | | {
|
| | | ItemTipUtility.Show(itemConfig.ID);
|
| | | //ItemTipUtility.Show(itemConfig.ID);
|
| | | m_storeModel.OnClickShopCell(storeConfig);
|
| | | });
|
| | | int canBuyCnt = 0;
|
| | | int addBuyCnt = 0;
|
| | |
| | | shopCellBtn.AddListener(()=>
|
| | | {
|
| | | ItemTipUtility.Show(itemConfig.ID);
|
| | | m_storeModel.OnClickShopCell(storeConfig);
|
| | | });
|
| | | buyBtn.RemoveAllListeners();
|
| | | buyBtn.AddListener(()=> { ClickBuyBtn(storeConfig);});
|
| | |
| | |
|
| | | private void ClickBuyBtn(StoreConfig storeConfig)
|
| | | {
|
| | | m_storeModel.SendBuyShopItem(storeConfig,1);
|
| | | m_storeModel.OnClickShopCell(storeConfig);
|
| | | }
|
| | | }
|
| | | }
|