com.wallstop-studios.unity-helpers 2.0.0-rc52 → 2.0.0-rc53

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.
@@ -26,7 +26,11 @@
26
26
 
27
27
  Type type = typeof(T);
28
28
  GameObject instance = new($"{type.Name}-Singleton", type);
29
- if (instance.TryGetComponent(out _instance) && _instance.Preserve)
29
+ if (
30
+ instance.TryGetComponent(out _instance)
31
+ && _instance.Preserve
32
+ && Application.isPlaying
33
+ )
30
34
  {
31
35
  DontDestroyOnLoad(instance);
32
36
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "com.wallstop-studios.unity-helpers",
3
- "version": "2.0.0-rc52",
3
+ "version": "2.0.0-rc53",
4
4
  "displayName": "Unity Helpers",
5
5
  "description": "Various Unity Helper Library",
6
6
  "dependencies": {},