Listen for escape key and quit the application
This commit is contained in:
parent
6015c44604
commit
23fc20c4ad
1 changed files with 7 additions and 0 deletions
|
@ -44,5 +44,12 @@ namespace src.Managers
|
||||||
{
|
{
|
||||||
_levelManager.InitLevel();
|
_levelManager.InitLevel();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Listen for meta keys */
|
||||||
|
private void Update(){
|
||||||
|
if (Input.GetKeyDown(KeyCode.Escape))
|
||||||
|
Application.Quit();
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Reference in a new issue