This commit is contained in:
Bob.Song
2026-03-25 17:07:05 +08:00
parent 09540ad1a8
commit 830cf3c354
141 changed files with 537 additions and 197 deletions

View File

@@ -1,11 +1,29 @@
// 本脚本只在不存在时会生成一次。已存在不会再次生成覆盖
using FairyGUI;
using UnityEngine;
using NBC;
using UIPanel = NBC.UIPanel;
namespace NBF
{
public partial class TestPanel : UIPanel
{
protected override void OnInit()
{
this.AutoAddClick(OnClick);
}
public void OnClick(GComponent btn)
{
if (btn == BtnTest1)
{
Notices.Info("测试1");
}
else if (btn == BtnTest2)
{
Alert.Show("测试2");
}
}
}
}