2025-09-03 19:59:22 +08:00
|
|
|
using Base;
|
|
|
|
|
using UnityEngine;
|
|
|
|
|
|
|
|
|
|
namespace UI
|
|
|
|
|
{
|
2025-10-10 14:08:23 +08:00
|
|
|
public class FullScreenUI : UIBase, ITickUI
|
2025-09-03 19:59:22 +08:00
|
|
|
{
|
|
|
|
|
public FullScreenUI()
|
|
|
|
|
{
|
|
|
|
|
isInputOccupied = true;
|
2025-10-10 14:08:23 +08:00
|
|
|
exclusive = true;
|
2025-09-03 19:59:22 +08:00
|
|
|
}
|
2025-09-28 15:02:57 +08:00
|
|
|
|
|
|
|
|
private void OnEnable()
|
|
|
|
|
{
|
|
|
|
|
Clock.AddTickUI(this);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
private void OnDisable()
|
|
|
|
|
{
|
|
|
|
|
Clock.RemoveTickUI(this);
|
|
|
|
|
}
|
|
|
|
|
|
2025-09-03 19:59:22 +08:00
|
|
|
public virtual void TickUI()
|
|
|
|
|
{
|
2025-10-10 14:08:23 +08:00
|
|
|
if (Input.GetKeyDown(KeyCode.Escape) || Input.GetKeyDown(actionButton))
|
2025-09-03 19:59:22 +08:00
|
|
|
UIInputControl.Instance.Hide(this);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|