Advertisement
Guest User

Untitled

a guest
Jan 22nd, 2017
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.23 KB | None | 0 0
  1. using UnityEngine;
  2. using System.Collections;
  3.  
  4. public class EscapeQuit : MonoBehaviour
  5. {
  6.  
  7.     void Update()
  8.     {
  9.         if (Input.GetKey("escape"))
  10.         {
  11.             Application.LoadLevel("Menu");
  12.         }
  13.     }
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement