So I'm using PoolManager to handle my Dungeon Keeper-esc game. When you spawn an object or unit it loads that into a pool. However, when that unit dies it despawns it (making the object inactive in the pool). What I've found though is that spawning another object of the same type simply re-actives that despawned version, rather then create a new one.
This is problematic because of the complexity of FSMs involved, I need certain actions in certain orders, even with the FSMs themselves marked as "Reset on Disable" it does not appear to be functioning properly when the object and not the FSM specifically is disabled.
What is the best practice for using Pool Manager to spawn and re-spawn objects? Prior to de-spawning them do I need to disable and reset it to a "clean" state or is there something I'm not doing correctly in the spawn action to reset the object?
- Ian