From the same project, this focuses on the object pooling pattern which makes a "pool" or group of objects and allows the program or game to grab any of the objects from the pool. If the objects are removed or destroyed from the view or scene then they will simply be added right back into the pool to be reused later.
This is the script used for creating the tower generator using the object pooling method.
This is the script for "breaking" the platforms in the tower so that they can be returned to the pool. The platforms use a trigger collider to activate this script.
Comments
Post a Comment