| | |
| | | {
|
| | | ItemTipUtility.Show(_item.ID);
|
| | | });
|
| | |
|
| | | //一次使用物品多个,不算多格子
|
| | | int useCnt = 0;
|
| | | var item = playerPack.GetItemByID(PackType.Item, _id);
|
| | | if (item != null)
|
| | | {
|
| | | |
| | | useCnt = Math.Min(_maxuse - tag_Item[_id], item.count);
|
| | | }
|
| | | _MountStoneItem.UserBtn.RemoveAllListeners();
|
| | | _MountStoneItem.UserBtn.AddListener(() =>
|
| | | {
|
| | | C0702_tagCUseItem _tagUse = new C0702_tagCUseItem();
|
| | | DebugEx.LogWarning(bagIndex[0]);
|
| | | _tagUse.ItemIndex = (byte)bagIndex[0];
|
| | | GameNetSystem.Instance.SendInfo(_tagUse);
|
| | |
|
| | | if (item == null || useCnt < 0)
|
| | | {
|
| | | return;
|
| | | }
|
| | | ItemOperateUtility.Instance.UseItem(item.guid, useCnt);
|
| | | });
|
| | |
|
| | | }
|
| | |
|
| | | void CloseButtonHS()//灵兽魂石关闭
|