(client)feat:添加UI管理器,统一管理继承自UIBase的UI并保证显示唯一

This commit is contained in:
m0_75251201
2025-07-19 20:21:23 +08:00
parent 389376ec47
commit 2e74833a18
7 changed files with 7563 additions and 15 deletions

View File

@ -5,13 +5,18 @@ using UnityEngine.UI;
namespace UI
{
public class DevMenuUI : MonoBehaviour
public class DevMenuUI : UIBase
{
public GameObject menuContent;
public Prefab.TextPrefab textTemplate;
public Prefab.ButtonPrefab buttonTemplate;
void Awake()
{
actionButton = KeyCode.F1;
}
void Start()
{
Init();
@ -19,7 +24,6 @@ namespace UI
void Init()
{
Managers.DefineManager.Instance.Init();
InitEvent();
InitCharacter();
}
@ -32,6 +36,7 @@ namespace UI
// var button= InstantiatePrefab(buttonTemplate, menuContent.transform);
// button.text.text = i.ToString();
// }
}
void InitCharacter()