mirror of
http://47.107.252.169:3000/Roguelite-Game-Developing-Team/Gen_Hack-and-Slash-Roguelite.git
synced 2025-11-20 11:17:14 +08:00
21 lines
464 B
C#
21 lines
464 B
C#
|
|
using Base;
|
||
|
|
using UnityEngine;
|
||
|
|
|
||
|
|
namespace UI
|
||
|
|
{
|
||
|
|
public class FullScreenUI:UIBase,ITickUI
|
||
|
|
{
|
||
|
|
public FullScreenUI()
|
||
|
|
{
|
||
|
|
isInputOccupied = true;
|
||
|
|
exclusive=true;
|
||
|
|
}
|
||
|
|
public virtual void TickUI()
|
||
|
|
{
|
||
|
|
if(!IsVisible)
|
||
|
|
return;
|
||
|
|
if (Input.GetKeyDown(KeyCode.Escape) || Input.GetKeyDown(actionButton))
|
||
|
|
UIInputControl.Instance.Hide(this);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
}
|