diff --git a/Assets/Scripts/ExitHandles.cs b/Assets/Scripts/ExitHandles.cs index 8ef1538..f9f5c26 100644 --- a/Assets/Scripts/ExitHandles.cs +++ b/Assets/Scripts/ExitHandles.cs @@ -1,10 +1,11 @@ using UnityEngine; +using UnityEngine.InputSystem; public class ExitHandles : MonoBehaviour { private void FixedUpdate() { - if (Input.GetKeyDown(KeyCode.Escape)) + if (Keyboard.current != null && Keyboard.current.escapeKey.wasPressedThisFrame) { QuitGame(); }