Listen for escape key and quit the application

This commit is contained in:
Denis-Cosmin Nutiu 2019-06-30 17:35:39 +03:00
parent 6015c44604
commit 23fc20c4ad

View file

@ -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();
}
} }
} }