Insanely huge initial commit

This commit is contained in:
2026-02-21 17:04:05 -08:00
parent 9cdd36191a
commit 613d75914a
22525 changed files with 4035207 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace MoreMountains.Tools
{
/// <summary>
/// A super simple mono you can add to an object to call its Quit method, which will force the application to quit.
/// </summary>
public class MMApplicationQuit : MonoBehaviour
{
[Header("Debug")]
[MMInspectorButton("Quit")]
public bool QuitButton;
/// <summary>
/// Forces the application to quit
/// </summary>
public virtual void Quit()
{
#if UNITY_EDITOR
UnityEditor.EditorApplication.isPlaying = false;
#else
Application.Quit();
#endif
}
}
}