|
Post by wa5hburn on May 4, 2017 14:56:32 GMT
Hi, I am currently just using the poolboss from DTGK. My objects are created and despawned happiply.
I have an issue that when any of the despawned prefabs are respawned they seem to forget all their actions. Sometimes they are spawned and still have the actions on them when they were despawned.
I appreciate I may need to reset the prefab but kind of at a loss. Any advice appreciated.
thanks
|
|
|
Post by DarkTonic Dev on May 4, 2017 17:13:16 GMT
It sounds like you might have missed something in the documentation about Pool Boss. Basically you will need to move any state initialization code from Awake and Start methods into OnSpawned method (which Pool Boss calls every time a game object spawns). Awake and Start only get called the very first time and never again. That's how all pooling plugins work by the very nature of not destroying game objects.
|
|