拖动物品到快速使用

This commit is contained in:
2025-11-17 00:06:20 +08:00
parent f33fa8bcc5
commit d18c32211c
17 changed files with 211 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
// 本脚本只在不存在时会生成一次。组件逻辑写在当前脚本内。已存在不会再次生成覆盖
using UnityEngine;
using FairyGUI;
using NBC;
namespace NBF
{
public partial class BagSlotItem : GButton
{
private void OnInited()
{
onDrop.Add(context => { this.icon = (string)context.data; });
}
}
}