mirror of
http://47.107.252.169:3000/Roguelite-Game-Developing-Team/Gen_Hack-and-Slash-Roguelite.git
synced 2025-11-20 03:47:13 +08:00
Co-authored-by: m0_75251201 <m0_75251201@noreply.gitcode.com> Reviewed-on: http://47.107.252.169:3000/Roguelite-Game-Developing-Team/Gen_Hack-and-Slash-Roguelite/pulls/57
27 lines
605 B
C#
27 lines
605 B
C#
using UnityEngine;
|
|
|
|
namespace UI
|
|
{
|
|
public abstract class UIBase : MonoBehaviour
|
|
{
|
|
public bool exclusive = true;
|
|
public bool needPause = true;
|
|
public bool isInputOccupied = false;
|
|
|
|
public KeyCode actionButton = KeyCode.None;
|
|
|
|
// 显示或隐藏窗口
|
|
public virtual void Show()
|
|
{
|
|
gameObject.SetActive(true);
|
|
}
|
|
|
|
public virtual void Hide()
|
|
{
|
|
gameObject.SetActive(false);
|
|
}
|
|
|
|
// 判断是否可见
|
|
public bool IsVisible => gameObject && gameObject.activeInHierarchy;
|
|
}
|
|
} |