Simple object pooling for use with Unity/Futile 2D Framework.
The class in which you want to pool should adhere to the IJDPoolable interface. You should reset any variables in OnItemFree()
void OnItemFree();
public JDPool<ObjectToPool> objectPool = new JDPool<ObjectToPool>(() => new ObjectToPool());
var pooledObject = objectPool.GetItem();
objectPool.FreeItem(pooledObject);