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
@ -63,8 +63,11 @@ namespace DCFApixels.DragonECS.Unity.Internal
|
||||
void IEcsWorldEventListener.OnReleaseDelEntityBuffer(ReadOnlySpan<int> buffer) { }
|
||||
void IEcsWorldEventListener.OnWorldDestroy()
|
||||
{
|
||||
UnityEngine.Object.Destroy(_monitor);
|
||||
UnityEngine.Object.Destroy(_entityMonitorsPoolRoot);
|
||||
if (Application.isPlaying)
|
||||
{
|
||||
UnityEngine.Object.Destroy(_monitor);
|
||||
UnityEngine.Object.Destroy(_entityMonitorsPoolRoot);
|
||||
}
|
||||
_monitor = null;
|
||||
_entityMonitorsPoolRoot = null;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user