mirror of
https://github.com/DCFApixels/DragonECS-Unity.git
synced 2025-09-18 01:54:35 +08:00
Merge branch 'dev'
This commit is contained in:
commit
7f18edff5f
@ -73,8 +73,14 @@ namespace DCFApixels.DragonECS.Unity.Internal
|
|||||||
{
|
{
|
||||||
if (Application.isPlaying)
|
if (Application.isPlaying)
|
||||||
{
|
{
|
||||||
UnityEngine.Object.Destroy(_monitor.gameObject);
|
if (_monitor != null)
|
||||||
UnityEngine.Object.Destroy(_entityMonitorsPoolRoot.gameObject);
|
{
|
||||||
|
UnityEngine.Object.Destroy(_monitor.gameObject);
|
||||||
|
}
|
||||||
|
if (_entityMonitorsPoolRoot != null)
|
||||||
|
{
|
||||||
|
UnityEngine.Object.Destroy(_entityMonitorsPoolRoot.gameObject);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
_monitor = null;
|
_monitor = null;
|
||||||
_entityMonitorsPoolRoot = null;
|
_entityMonitorsPoolRoot = null;
|
||||||
|
Loading…
Reference in New Issue
Block a user