use new unity input system

This commit is contained in:
2026-05-10 22:09:01 +02:00
parent 9c83f36d5d
commit aaa41c23ff
+2 -1
View File
@@ -1,10 +1,11 @@
using UnityEngine; using UnityEngine;
using UnityEngine.InputSystem;
public class ExitHandles : MonoBehaviour public class ExitHandles : MonoBehaviour
{ {
private void FixedUpdate() private void FixedUpdate()
{ {
if (Input.GetKeyDown(KeyCode.Escape)) if (Keyboard.current != null && Keyboard.current.escapeKey.wasPressedThisFrame)
{ {
QuitGame(); QuitGame();
} }