You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
453 B
C#
22 lines
453 B
C#
using UnityEditor;
|
|
namespace ParrelSync
|
|
{
|
|
[InitializeOnLoad]
|
|
public class EditorQuit
|
|
{
|
|
/// <summary>
|
|
/// Is editor being closed
|
|
/// </summary>
|
|
static public bool IsQuiting { get; private set; }
|
|
static void Quit()
|
|
{
|
|
IsQuiting = true;
|
|
}
|
|
|
|
static EditorQuit()
|
|
{
|
|
IsQuiting = false;
|
|
EditorApplication.quitting += Quit;
|
|
}
|
|
}
|
|
} |