mirror of
https://github.com/DCFApixels/DragonECS-Unity.git
synced 2025-09-19 02:24:35 +08:00
fix
This commit is contained in:
parent
4a41526f4a
commit
93f93a3ddb
@ -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