mirror of
https://github.com/soarqin/DSP_Mods_TO.git
synced 2025-12-15 11:03:32 +08:00
41 lines
620 B
C#
41 lines
620 B
C#
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; }
|
|
}
|
|
}
|