15 lines
267 B
C#
15 lines
267 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class Quit : MonoBehaviour
|
|
{
|
|
void Update()
|
|
{
|
|
if (Input.GetKey("escape")) {
|
|
Application.Quit();
|
|
Debug.Log("App quitted!");
|
|
}
|
|
}
|
|
}
|