Josip Å tajdohar

Shading portfolio Coding portfolio

Portfolio

Object poolers using generic types defined in an enum.

Source code:

An easy to override abstract object pooler for Unity Engine. If you want to use it in your project you neeed the ObjectPoolerBase.cs and the PoolClasses.cs. The ObjectPooler.cs is a basic implementation of the abstract class while the EnemyPooler.cs is an example of how to override and expand on the object pools functionality. The goal of this solution was to be able to pool a bunch of different objects from one MonoBehaviour based on a enum with different entries for each object and to be able to create different object pool functionality with easse by creating a new enum and a new object pooler that overrides the abstract class.