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