2022-01-26 07:46:33 +00:00
|
|
|
|
using System.Collections;
|
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
|
|
|
|
public class BasePanel : MonoBehaviour
|
|
|
|
|
|
{
|
|
|
|
|
|
public bool IsOpened => gameObject.activeSelf;
|
|
|
|
|
|
|
2022-02-10 10:17:22 +00:00
|
|
|
|
public virtual void OnOpen()
|
2022-01-26 07:46:33 +00:00
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2022-02-10 10:17:22 +00:00
|
|
|
|
public virtual void OnClose()
|
2022-01-26 07:46:33 +00:00
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
2022-02-10 10:17:22 +00:00
|
|
|
|
public virtual void OnFocus(bool pFocus)
|
2022-01-26 07:46:33 +00:00
|
|
|
|
{
|
2022-02-10 10:17:22 +00:00
|
|
|
|
|
2022-01-26 07:46:33 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
2022-02-10 10:17:22 +00:00
|
|
|
|
public void Close()
|
2022-01-26 07:46:33 +00:00
|
|
|
|
{
|
2022-02-10 10:17:22 +00:00
|
|
|
|
UIManager.Instance.CloseUI(this);
|
2022-01-26 07:46:33 +00:00
|
|
|
|
}
|
|
|
|
|
|
}
|