27 lines
474 B
C#
27 lines
474 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class ExitManage : MonoBehaviour
|
|
{
|
|
|
|
// Use this for initialization
|
|
void Start()
|
|
{
|
|
|
|
}
|
|
|
|
// Update is called once per frame
|
|
void Update()
|
|
{
|
|
|
|
if (Input.GetButtonDown("ReturnMenu"))
|
|
{
|
|
#if UNITY_EDITOR
|
|
UnityEditor.EditorApplication.isPlaying = false;
|
|
#elif UNITY_STANDALONE
|
|
UnityEngine.Application.Quit();
|
|
#endif
|
|
}
|
|
}
|
|
} |