mirror of
https://github.com/Steffo99/bleach-beach.git
synced 2024-12-04 19:04:19 +00:00
20 lines
424 B
C#
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();
|
|
}
|
|
}
|
|
}
|