Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {
- function OnMouseUp () {
- //This should be on to load into Maze 1
- if (IsEnter==true) {
- //this loads you into Maze 1
- Application.LoadLevel(3);
- }
- else {
- //This will quit the game
- Application.Quit();
- }
- }
- function Update () {
- //quits game is ESC is pressed
- if (Input.GetKey(KeyCode.Escape)) {Application.Quit();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement