ObjectPool Class
Holds a pool of different Objects to help reduce the number times an object is created and destroyed.
Constructor
ObjectPool
(
-
type
-
parent
Parameters:
-
type
MixedThe object type that this pool will hold (like Sprite, or Tile)
-
parent
MixedThe parent that the objects will be added to. Passing this in will make the pool add any newly created objects as children to this object.