相关UILUOJI

This commit is contained in:
xmac
2025-05-22 22:49:32 +08:00
parent 10de589722
commit 2ca8eac832
27 changed files with 172 additions and 35 deletions

View File

@@ -0,0 +1,31 @@
// 本脚本只在不存在时会生成一次。组件逻辑写在当前脚本内。已存在不会再次生成覆盖
using System;
using UnityEngine;
using FairyGUI;
using NBC;
namespace NBF
{
public partial class CommonMenu : GLabel
{
public event Action OnClose;
public event Action<int> OnTabChange;
private void OnInited()
{
BtnClose.onClick.Add(OnClickClose);
}
public void SetTabs()
{
List.RemoveChildrenToPool();
}
private void OnClickClose()
{
OnClose?.Invoke();
}
}
}