少年修仙传客户端代码仓库
Client_PangDeRong
2018-10-22 f02e7141fcefa3337a173be530d7362b87ffa52a
System/OpenServerActivity/PoolItemCell.cs
@@ -22,15 +22,15 @@
        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);
            });
        }