how to close Application but still run a script unity code example Example: unity application quit Application.Quit();