Skip to content

A simple, dynamically growing and shrinking Object Pooling System.

License

Notifications You must be signed in to change notification settings

formatc2013/puddle

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Features: auto clean up on set intervals.

Usage: !!!You have to create a class that inherits from AbstractPoolable, and add the component to your poolable gameobject. After that you can proceed.!!!

Init: Awake()=> myPool = new ObjectPool(myObjectToPool, initialElements, useActivePool, autoCleanup, autoCleanUpInterval);

Pool out: OnTriggerEnter()=> myPool.AddObjectAtPosition(enemyPosition);

Pool back:

OnDeath()=> Poolback();

!!! - this is the tricky part from your side; calling it is easy, just got to find the right function, my general advice is not to use OnDisable()!!!

About

A simple, dynamically growing and shrinking Object Pooling System.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages