using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UIElements; using MuHua; /// /// UI拖拽物品 /// public class UIDragItem : ModuleUIPanel, UIControl { /// 画布 private VisualElement canvas; /// 是否启用 private bool isEnable; /// 鼠标位置 private Vector2 mousePosition; /// 偏移位置 private Vector2 offsetPosition; /// 物品容器 private DragContainer container; /// 目标容器 private DragContainer targetContainer; public Label Count => Q