Add ParrelSync and netcode

This commit is contained in:
2024-08-21 18:13:06 +02:00
parent 1a9e2a3ee8
commit 6e037b4d06
42 changed files with 2078 additions and 15 deletions

View File

@@ -0,0 +1,22 @@
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;
}
}
}