Вихід з гри

     void Update() {

          if (Input.GetKeyDown(KeyCode.Q)) 

          {

                Application.Quit();

          }

     }