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);
|
|
}
|
|
}
|
|
} |