You've already forked zumbi-game
use new unity input system
This commit is contained in:
@@ -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();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user