using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UIElements; /// /// 项目拖拽 /// public interface InventoryDrag { /// 数量 public int Count { get; } /// 物品 public InventoryItem Item { get; } /// 锚点 public VisualElement Anchor { get; } /// 取消拖拽 public void Cancel(); /// 设置物品 public void Settings(InventoryItem item, int count); }