using System.Collections;
using System.Collections.Generic;
using UnityEditor;
using UnityEngine;
public class Exit : MonoBehaviour
{
public void Exitbtn()
{
#if UNITY_EDITOR
EditorApplication.isPlaying = false; //Unity调试器运行退出
#else
Application.Quit(); //app本体退出
#endif
}
}
unity 安卓退出
于 2024-07-18 21:51:54 首次发布