Method Clear
- Namespace
- Gamelogic.Extensions
- Assembly
- Gamelogic.Extensions.dll
Clear<T>(IPool<T>, bool)
Destroys all objects in the pool, reducing the capacity to zero.
public static void Clear<T>(this IPool<T> pool, bool deactivateFirst = false)
Parameters
poolIPool<T>The pool to clear.
deactivateFirstboolWhether to deactivate objects before destroying them.
Type Parameters
TThe type of the objects in the pool.