mirror of
https://github.com/DCFApixels/DragonECS-Unity.git
synced 2025-09-18 01:54:35 +08:00
fix
This commit is contained in:
parent
7c23350cdc
commit
16fde5c3c9
@ -62,9 +62,12 @@ namespace DCFApixels.DragonECS.Unity.Internal
|
|||||||
}
|
}
|
||||||
void IEcsWorldEventListener.OnReleaseDelEntityBuffer(ReadOnlySpan<int> buffer) { }
|
void IEcsWorldEventListener.OnReleaseDelEntityBuffer(ReadOnlySpan<int> buffer) { }
|
||||||
void IEcsWorldEventListener.OnWorldDestroy()
|
void IEcsWorldEventListener.OnWorldDestroy()
|
||||||
|
{
|
||||||
|
if (Application.isPlaying)
|
||||||
{
|
{
|
||||||
UnityEngine.Object.Destroy(_monitor);
|
UnityEngine.Object.Destroy(_monitor);
|
||||||
UnityEngine.Object.Destroy(_entityMonitorsPoolRoot);
|
UnityEngine.Object.Destroy(_entityMonitorsPoolRoot);
|
||||||
|
}
|
||||||
_monitor = null;
|
_monitor = null;
|
||||||
_entityMonitorsPoolRoot = null;
|
_entityMonitorsPoolRoot = null;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user