Simple pool with a unity like signature of methods. Simplest use. Quick implementation.How to use:1. Add:using GameObjectPooling;2. Insert the GameObjectPool. before calling the Instantiate and Destroy methods:Examples:GameObjectPool.Instantiate(prefab, position, Quaternion.identity);Rigidbody instance = GameObjectPool.Instantiate(prefab, parent);GameObjectPool.Destroy(anyGameObject);3. If necessary, reset variables in components after instance reuse:Rigidbody instance = GameObjectPool.Instantiate(prefab, position, Quaternion.identity);instance.velocity = Vector3.zero;Source code