From 98055d7711587eb5a4c2e6e9306c66d3f0ef3669 Mon Sep 17 00:00:00 2001 From: teascade Date: Fri, 7 Aug 2020 05:36:20 +0300 Subject: [PATCH] Fix Net.Quit --- Assets/Scripts/Net/Net.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Assets/Scripts/Net/Net.cs b/Assets/Scripts/Net/Net.cs index f354e50..c302d86 100644 --- a/Assets/Scripts/Net/Net.cs +++ b/Assets/Scripts/Net/Net.cs @@ -21,7 +21,9 @@ namespace NeonTea.Quakeball.Net { } public static void Quit() { - Singleton.Instance.Stop(); + if (Singleton.Instance != null) { + Singleton.Instance.Stop(); + } } [RuntimeInitializeOnLoadMethod]