Advance ObjectPooling system to pool multiple type of gamobject from single service.
Create a gameobject and attach the ObjectPooling script to it.
Methods to Use:
- GetFromPool method is used to get the object from the pool.It takes gameobject prefab as a parameter.
- ReturnToPool method is used to return the object to the pool. Pass the gamobject which you want to return to pool as a parameter.