(client)feat:添加UI管理器,统一管理继承自UIBase的UI并保证显示唯一
This commit is contained in:
@ -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()
|
||||
|
Reference in New Issue
Block a user