Question about Pool

I use the "ObjectPool.Destroy(gameObject, 2f)" method, but the script recognizes it as Unity's "Destroy(gameObject, 2f)".

If I use the "ObjectPool.Destroy(gameObject)" method, the script can recognize it as ObjectPool‘s "Destroy(gameObject)".

Simply put, I can use ObjectPool.Destroy(), but I can't add a delay time.
 

Justin

Administrator
Staff member
The ObjectPool component doesn't have a method which adds a delay. In this case you'll need to use the scheduler to delay destroying the object.
 
Top