IMPLEMENTATION
A simple project to showcase the Object Pooling Game Design
Last updated
A simple project to showcase the Object Pooling Game Design
Last updated
GOAL: The program needs to be able to pre-generate a pool of bullet prefabs and be able to dynamically grow the pool as needed.
Prefab | Bullet | Capsule Object
Bullet
Player | Empty GameObject
Player
Pool Manager | Empty GameObject
Pool Manager Class should be a singleton for easy accessibility
Needs to have methods that can handle the following functions...
Ability to pre-generate a list of bullet prefabs ---> Create a pool of bullet prefabs ---> Be able to dynamically grow list as needed
Return requested bullets when triggered to
Be able to request bullet prefabs from the pool manager when player presses the SPACE KEY
Deactivate bullet after 1 second of being activated
The program starts with 5 bullet prefabs generated within the pool, and if all bullet prefabs are active within the scene and the player needs more, the program can dynamically grow the pool as needed.
Pool Manager |