This repository has been archived on 2026-01-20. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
Frontec/Assets/Unity UI Samples/Scripts/ApplicationManager.cs
jmaniuvc 2936c48466 Frontec
2025-02-24 12:12:52 +09:00

16 lines
241 B
C#

using UnityEngine;
using System.Collections;
public class ApplicationManager : MonoBehaviour {
public void Quit ()
{
#if UNITY_EDITOR
UnityEditor.EditorApplication.isPlaying = false;
#else
Application.Quit();
#endif
}
}