Advertisement
Guest User

Untitled

a guest
May 30th, 2016
42
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.18 KB | None | 0 0
  1. if (Input.GetKey(KeyCode.Escape) && Input.GetKey(KeyCode.LeftShift)) {
  2. #if UNITY_EDITOR
  3. UnityEditor.EditorApplication.isPlaying = false;
  4. #else
  5. Application.Quit();
  6. #endif
  7. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement