mirror of
https://github.com/zoriya/Skillfight.git
synced 2026-05-16 04:42:38 +00:00
19 lines
325 B
C#
19 lines
325 B
C#
using UnityEngine;
|
|
using UnityEngine.EventSystems;
|
|
|
|
public class ClosePopUp : MonoBehaviour {
|
|
|
|
private void Update()
|
|
{
|
|
if (Input.GetKeyDown(KeyCode.Escape))
|
|
{
|
|
gameObject.SetActive(false);
|
|
}
|
|
}
|
|
|
|
public void RemovePopUp()
|
|
{
|
|
gameObject.SetActive(false);
|
|
}
|
|
}
|