- Home /
Question by
Winboy · May 02, 2014 at 05:38 AM ·
unity 2dobject pool
How can I stop my object pool from firing?
I have a pool of bullets, and spawner attached to my gameobject. Now, when the parent gameobject is set to active = false, my spawner, which would be the script attached to the gameobject continues firing bullets. My code comes form the live training video (http://unity3d.com/learn/tutorials/modules/beginner/live-training-archive/object-pooling). My question is how can I disable the spawner from firing the bullets from the pool when the gameobject is "killed".
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220613144048im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
how to fix missing reference exception when reload scene 1 Answer
Hololens won't connect to server over UNet 0 Answers
Unexpected Strange Behavior 0 Answers
Passing variables throught scene 0 Answers