Question by
mmc_unity · Jul 17, 2016 at 05:42 PM ·
instantiatecolliderdestroy
How to destroy a cloned/instantiated enemy from script?
Hello. I have to destroy 5 enemies to win the game but untill i kill the last one the script already instantiate one or two more enemies wich can kill me, so even tough I killed 5 enemies I still might lose the game if an enemy shoots me. So please tell me how to destroy from script the enemies that were instantiated after I killed the fifth enemy or how to deactivate my collider.
Comment
Your answer
Follow this Question
Related Questions
Cannot destroy the SphereCollider on Instantiated Objects 1 Answer
Why won't this object destroy on collision? 1 Answer
making objects react to colliders without tag C# 1 Answer
destroying instantiated groups of objects 1 Answer
Destroy GameObject in list then instantiate GameObject not working 1 Answer