mirror of
https://github.com/soarqin/DSP_Mods_TO.git
synced 2025-12-19 04:53:28 +08:00
add XianTu
This commit is contained in:
40
XianTu/UI/BasePanel.cs
Normal file
40
XianTu/UI/BasePanel.cs
Normal file
@@ -0,0 +1,40 @@
|
||||
using UnityEngine;
|
||||
|
||||
namespace XianTu.UI
|
||||
{
|
||||
internal class BasePanel : MonoBehaviour
|
||||
{
|
||||
public virtual void OnEnter()
|
||||
{
|
||||
}
|
||||
|
||||
public virtual void OnPause()
|
||||
{
|
||||
UITool.GameObject.SetActive(false);
|
||||
}
|
||||
|
||||
public virtual void OnResume()
|
||||
{
|
||||
UITool.GameObject.SetActive(true);
|
||||
}
|
||||
|
||||
public virtual void OnExit()
|
||||
{
|
||||
Destroy(UITool.GameObject);
|
||||
}
|
||||
|
||||
public void Init(PanelManager panelManager)
|
||||
{
|
||||
PanelManager = panelManager;
|
||||
}
|
||||
|
||||
public PanelManager PanelManager { get; private set; }
|
||||
|
||||
public void Init(UITool uiTool)
|
||||
{
|
||||
UITool = uiTool;
|
||||
}
|
||||
|
||||
public UITool UITool { get; private set; }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user