diff --git a/Assets/CustomTools/ObjectPooling/Scripts/ObjectPool/ObjectPooler.cs b/Assets/CustomTools/ObjectPooling/Scripts/ObjectPool/ObjectPooler.cs index e2c24df..07f9dac 100644 --- a/Assets/CustomTools/ObjectPooling/Scripts/ObjectPool/ObjectPooler.cs +++ b/Assets/CustomTools/ObjectPooling/Scripts/ObjectPool/ObjectPooler.cs @@ -98,7 +98,11 @@ public void Despawn(GameObject obj) PoolDictionary[tag].Enqueue(obj); IPooledObject iPooledObj = obj.GetComponent(); - if (iPooledObj != null) iPooledObj.OnObjectDespawn(); + if (iPooledObj != null) + { + iPooledObj.OnObjectDespawn(); + } + obj.transform.SetParent(_poolMasters[tag]); obj.SetActive(false);