GuiManager

This commit is contained in:
Janis
2023-02-22 14:23:26 +01:00
parent a2e4459b5c
commit 50916358f2
8 changed files with 212 additions and 5 deletions

View File

@@ -0,0 +1,22 @@
using UnityEngine;
public abstract class GuiPanel : MonoBehaviour
{
[SerializeField] private string panelName;
public string GetName()
{
return panelName;
}
private void Awake()
{
GuiManager.Instance.RegisterPanel(this);
}
public abstract void OnOpen();
public abstract void OnClose();
}