Make it so you can press escape in any place in berrydash (almost any)
This commit is contained in:
@@ -7,6 +7,7 @@ using System.Threading.Tasks;
|
||||
using Newtonsoft.Json.Linq;
|
||||
using TMPro;
|
||||
using UnityEngine;
|
||||
using UnityEngine.InputSystem;
|
||||
using UnityEngine.Networking;
|
||||
using UnityEngine.UI;
|
||||
|
||||
@@ -393,4 +394,9 @@ public class ProfileMenu : MonoBehaviour
|
||||
Debug.LogError("Failed to upload post");
|
||||
}
|
||||
}
|
||||
|
||||
void Update()
|
||||
{
|
||||
if (Keyboard.current.escapeKey.wasPressedThisFrame) Destroy(gameObject);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user