Files
Darklings-FightingGame/Assets/_Project/Scripts/UIScripts/QuitApplication.cs
David Kalatzis 5db127aab4 Minor UI updates
2023-03-26 19:50:30 +03:00

18 lines
338 B
C#

using UnityEngine;
public class QuitApplication : MonoBehaviour
{
public void Quit()
{
#if UNITY_EDITOR
UnityEditor.EditorApplication.isPlaying = false;
#endif
#if UNITY_STANDALONE_WIN
Application.Quit();
#endif
#if UNITY_WEBGL
Application.OpenURL("https://gamejolt.com/games/darklings/640842");
#endif
}
}