Home khkGames Classes Calendar Software Bibliothek Index Contact

ApplicationQuit.cs

 using UnityEngine;
 using System.Collections;
 // Quits the player when the user hits escape
 public class ExampleClass : MonoBehaviour
 {
    void Update()
    {
        if (Input.GetKey("escape"))
        {
            Application.Quit();
        }
    }
 }