| | |
| | | public void Display(int index)
|
| | | {
|
| | | this.index = index;
|
| | | int id = 0;
|
| | | bool isPoolData = wishingModel.TryGetPoolDataByIndex(index,out id);
|
| | | WishingPoolModel.WishingWellItem wellItem = null;
|
| | | bool isPoolData = wishingModel.TryGetPoolDataByIndex(index,out wellItem);
|
| | | bestIconObj.SetActive(false);
|
| | | ItemCellModel cellModel = new ItemCellModel(id);
|
| | | ItemCellModel cellModel = new ItemCellModel(wellItem.itemId,false,(ulong)wellItem.itemCount,wellItem.isBind);
|
| | | itemBaisc.Init(cellModel);
|
| | | itemBaisc.cellBtn.RemoveAllListeners();
|
| | | itemBaisc.cellBtn.AddListener(()=>
|
| | | {
|
| | | ItemAttrData attrData = new ItemAttrData(id);
|
| | | ItemAttrData attrData = new ItemAttrData(wellItem.itemId, true, (ulong)wellItem.itemCount, -1,wellItem.isBind);
|
| | | tipsModel.SetItemTipsModel(attrData);
|
| | | });
|
| | | }
|