21 lines
428 B
C#
21 lines
428 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))
|
||
|
UIInputControl.Instance.Hide(this);
|
||
|
}
|
||
|
}
|
||
|
}
|