how to call a function when user quits application unity code example Example: unity application quit Application.Quit();