mirror of
https://github.com/DerTyp7/harvestdale-unity.git
synced 2025-10-30 13:07:10 +01:00
GuiManager
This commit is contained in:
22
Assets/Scripts/UI/GuiPanel.cs
Normal file
22
Assets/Scripts/UI/GuiPanel.cs
Normal 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();
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user