I've been trying to find the answer to this with no look, I want to exit a unity game window (build not the game preview in the developer) here is a snippet of my code,
void Update()
{
if (Input.GetKeyDown (KeyCode.Escape)) {
Application.Quit();
}
}
This doesn't exit the window and I cant see why, any ideas? Thanks for any reply.