com.wallstop-studios.unity-helpers 2.0.0-rc75.6 → 2.0.0-rc75.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -21,7 +21,6 @@
|
|
|
21
21
|
public static bool HasInstance => _instance != null;
|
|
22
22
|
|
|
23
23
|
protected static T _instance;
|
|
24
|
-
protected static bool _isQuitting;
|
|
25
24
|
|
|
26
25
|
protected virtual bool Preserve => true;
|
|
27
26
|
|
|
@@ -34,11 +33,6 @@
|
|
|
34
33
|
return _instance;
|
|
35
34
|
}
|
|
36
35
|
|
|
37
|
-
if (_isQuitting)
|
|
38
|
-
{
|
|
39
|
-
return null;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
36
|
_instance = FindAnyObjectByType<T>(FindObjectsInactive.Exclude);
|
|
43
37
|
if (_instance != null)
|
|
44
38
|
{
|
|
@@ -88,9 +82,6 @@
|
|
|
88
82
|
}
|
|
89
83
|
}
|
|
90
84
|
|
|
91
|
-
protected virtual void OnApplicationQuit()
|
|
92
|
-
{
|
|
93
|
-
_isQuitting = true;
|
|
94
|
-
}
|
|
85
|
+
protected virtual void OnApplicationQuit() { }
|
|
95
86
|
}
|
|
96
87
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "com.wallstop-studios.unity-helpers",
|
|
3
|
-
"version": "2.0.0-rc75.
|
|
3
|
+
"version": "2.0.0-rc75.8",
|
|
4
4
|
"displayName": "Unity Helpers",
|
|
5
5
|
"description": "Various Unity Helper Library",
|
|
6
6
|
"dependencies": {},
|
|
@@ -69,6 +69,8 @@
|
|
|
69
69
|
|
|
70
70
|
|
|
71
71
|
|
|
72
|
+
|
|
73
|
+
|
|
72
74
|
|
|
73
75
|
|
|
74
76
|
|