3DSelfie  Hansjoerg Hofer (1026632), Sebastian Metzler (0927550)
quit.cs
Go to the documentation of this file.
1 using UnityEngine;
2 using System.Collections;
3 
4 public class quit : MonoBehaviour {
5 
6  // Use this for initialization
7  void Start () {
8 
9  }
10 
11  // Update is called once per frame
12  void Update () {
13 
14 
15  if (Input.GetKey(KeyCode.Escape) || Input.GetKey(KeyCode.Home)) { Application.Quit(); }
16  }
17 
18 
19 // void OnApplicationPause(bool pause){
20 // if(pause){ Application.Quit(); }
21 // }
22 }
Definition: quit.cs:4