1
Fork 0
mirror of https://github.com/Steffo99/bleach-beach.git synced 2024-12-04 19:04:19 +00:00
bleach-beach/Assets/Scripts/ExitWithEsc.cs
2018-08-13 13:08:34 +02:00

20 lines
424 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class ExitWithEsc : MonoBehaviour {
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
if(Input.GetKeyDown(KeyCode.Escape))
{
Debug.LogWarning("Application.Quit() is not available in the Unity Editor.");
Application.Quit();
}
}
}