How do I destroy a GameObject by activating a nearby particlesystem.
I've created some prefabs ( cube gameobjects) with different tags, "fire" and "water". I'm also trying to create different explosions using particle systems, one representing a fire explosion and one representing a water explosion.
I want my prefabs, tag "fire" to be destroyed when a fire explosion occurs nearby and "water" to be destroyed when a water explosion occurs nearby. Okay, so I now realised that I can do something like
fire = GameObject.FindWithTag("Fire");
//Then when I activate the particle system also do
Destroy(fire);
but how do I restrict the range of the destruction?
Thank you very much!
Your answer
Follow this Question
Related Questions
trigger explosion on different object 0 Answers
Procedural Obstacle Cleanup 1 Answer
Destroying instantiated game objects from prefab when coliding with the ground 1 Answer
Particle System Particles Not Following Rotation 1 Answer
How do I make it so that the fire behind my smoke is less visible? 0 Answers