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