32 lines
511 B
C#
32 lines
511 B
C#
using System;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class BasePanel : MonoBehaviour
|
|
{
|
|
public Action DelClose;
|
|
|
|
public bool IsOpened => gameObject.activeSelf;
|
|
public bool IsStack = true;
|
|
|
|
public virtual void OnOpen()
|
|
{
|
|
|
|
}
|
|
|
|
public virtual void OnClose()
|
|
{
|
|
DelClose?.Invoke();
|
|
}
|
|
|
|
public virtual void OnFocus(bool pFocus)
|
|
{
|
|
|
|
}
|
|
|
|
public void Close()
|
|
{
|
|
UIManager.Instance.CloseUI(this);
|
|
}
|
|
} |