UI매니저 기본 기능 구현
This commit is contained in:
@@ -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로 변경
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user