StationObscurum/Assets/Packages/Heat - Complete Modern UI/Scripts/Misc/ExitGame.cs

15 lines
287 B
C#
Raw Permalink Normal View History

2024-02-02 04:45:59 +01:00
using UnityEngine;
namespace Michsky.UI.Heat
{
public class ExitGame : MonoBehaviour
{
public void Exit()
{
Application.Quit();
#if UNITY_EDITOR
Debug.Log("<b>[Heat UI]</b> Exit function works in builds only.");
#endif
}
}
}