Co-authored-by: m0_75251201 <m0_75251201@noreply.gitcode.com> Reviewed-on: Roguelite-Game-Developing-Team/Gen_Hack-and-Slash-Roguelite#55
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);
|
|
}
|
|
}
|
|
} |