Constructor ObjectPool
ObjectPool(UnityAction<T>, UnityAction<T>, bool)
Constructor.
Declaration
public ObjectPool(UnityAction<T> actionOnGet, UnityAction<T> actionOnRelease, bool collectionCheck = true)
Parameters
Type | Name | Description |
---|---|---|
UnityAction<T> | actionOnGet | Action on get. |
UnityAction<T> | actionOnRelease | Action on release. |
bool | collectionCheck | True if collection integrity should be checked. |