| System/KnapSack/Logic/SelectBoxItemCell.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
System/KnapSack/Logic/SelectBoxItemCell.cs
@@ -35,7 +35,12 @@ nameText.text = itemConfig.ItemName; ItemCellModel cellModel = new ItemCellModel(id, false, (ulong)BoxModel.selectDict[id]); itemBaisc.Init(cellModel); haveCntText.text = playerPack.GetItemCountByID(PackType.rptItem, id).ToString(); int haveCnt = playerPack.GetItemCountByID(PackType.rptItem, id); if(haveCnt <= 0) { haveCnt = ModelCenter.Instance.GetModel<RuneModel>().GetRuneCountById(id); } haveCntText.text = haveCnt.ToString(); SetIsChoose(false); }