11 lines
217 B
C#
11 lines
217 B
C#
|
|
using System.Collections;
|
||
|
|
using System.Collections.Generic;
|
||
|
|
using UnityEngine;
|
||
|
|
|
||
|
|
public class Quit : MonoBehaviour
|
||
|
|
{
|
||
|
|
private void Update() {
|
||
|
|
if(Input.GetKeyDown(KeyCode.Escape)) Application.Quit();
|
||
|
|
}
|
||
|
|
}
|