UI매니저 기본 기능 구현

This commit is contained in:
2026-01-26 20:37:55 +09:00
parent 98cb263c66
commit 658cd58e30
7 changed files with 311 additions and 26 deletions

View File

@@ -30,6 +30,13 @@ public class UI_Button : UI_Popup
private void Start()
{
Init();
}
public override void Init()
{
base.Init();
// Reflection
Bind<Button>(typeof(Buttons));
// Text 대신 TextMeshProUGUI로 변경

View File

@@ -2,13 +2,13 @@ using UnityEngine;
public class UI_Popup : UI_Base
{
void Start()
public virtual void Init()
{
Managers.UI.SetCanvas(gameObject, true);
}
void Update()
public virtual void CloasePopupUI()
{
Managers.UI.ClosePopupUI(this);
}
}

View File

@@ -2,13 +2,8 @@ using UnityEngine;
public class UI_Scene : UI_Base
{
void Start()
public virtual void Init()
{
}
void Update()
{
Managers.UI.SetCanvas(gameObject, false);
}
}