|
@@ -100,6 +100,10 @@ namespace UniFramework.Pooling
|
|
|
|
|
|
// 销毁游戏对象
|
|
// 销毁游戏对象
|
|
GameObject.Destroy(_root);
|
|
GameObject.Destroy(_root);
|
|
|
|
+ foreach(var t in _cacheOperations)
|
|
|
|
+ {
|
|
|
|
+ DestroyInstantiateOperation(t);
|
|
|
|
+ }
|
|
_cacheOperations.Clear();
|
|
_cacheOperations.Clear();
|
|
|
|
|
|
SpawnCount = 0;
|
|
SpawnCount = 0;
|