Method DecCapacity
- Namespace
- Gamelogic.Extensions
- Assembly
- Gamelogic.Extensions.dll
DecCapacity(int, bool)
Decreases the capacity of the pool.
[Obsolete("Use DecreaseCapacity instead.")]
public int DecCapacity(int decrement, bool deactivateFirst = false)
Parameters
decrement
intThe number of pool objects to destroy.
deactivateFirst
boolWhether to deactivate (active) objects before destroying them.
Returns
Remarks
This method may destroy active objects.
Exceptions
- ArgumentOutOfRangeException
decrement
is negative.