Recycling is designed to help you reuse game objects without always re-allocating or "newing" them.
It behaves differently depending on whether maxSize
equals 0
or is bigger than 0
.
WARNING: If this function needs to create a new object, and no object class was provided,
it will return null
instead of a valid object!
A reference to the object that was created.