unity how to end a game with esc code example
Example: unity how to end a game with esc
void Update()
{
if (Input.GetKey(KeyCode.Escape))
{
Application.Quit();
}
}
void Update()
{
if (Input.GetKey(KeyCode.Escape))
{
Application.Quit();
}
}