/// <summary> /// 捡起物品槽中指定数量的物品 /// </summary> /// <param name="itemUI"></param> /// <param name="amount"></param> public void PickedItemUI(Item item, int amount) { PickedItem.SetItem(item, amount); //将当前物品信息复制给PickedItem(跟随鼠标移动) isPickedItem = true; //当前鼠标上有物品了 PickedItem.ShowItemUI(); //显示PickedItem toolTip.Hide(); //隐藏物品信息框的提示 }