Slight UI movements

This commit is contained in:
Iazubi
2024-10-25 16:24:17 -07:00
parent 33120cb9aa
commit 1c43a1cb20
7 changed files with 24 additions and 6 deletions

View File

@@ -0,0 +1,16 @@
using UnityEngine;
public class GameQuitter : MonoBehaviour
{
// Method to quit the game
public void QuitGame()
{
// Closes the application
Application.Quit();
// For the editor (testing purposes), stops play mode
#if UNITY_EDITOR
UnityEditor.EditorApplication.isPlaying = false;
#endif
}
}