修改框架

This commit is contained in:
MuHua-123
2025-09-25 17:50:28 +08:00
parent d940a18e13
commit 18c6b4387d
79 changed files with 1017 additions and 392 deletions
@@ -0,0 +1,21 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UIElements;
/// <summary>
/// 项目拖拽
/// </summary>
public interface InventoryDrag {
/// <summary> 数量 </summary>
public int Count { get; }
/// <summary> 物品 </summary>
public InventoryItem Item { get; }
/// <summary> 锚点 </summary>
public VisualElement Anchor { get; }
/// <summary> 取消拖拽 </summary>
public void Cancel();
/// <summary> 设置物品 </summary>
public void Settings(InventoryItem item, int count);
}