- Home /
Question by
Eunji_Shin · Dec 06, 2019 at 01:27 PM ·
collisioncolliderparticlesystem
How to destroy object when it collides particle
Hi. I make a simple game with unity. I make particle effect that follows the cursor and want the object which collides with particle must be destroyed. particle's tag is 'mario', and the object's tag is 'pizza'. and this is my script.
and in unity console window,
particle has script, and I checked 'Send Collision Messages'. I don't know why it doesn't work. Please help me!
스크린샷-2019-12-06-오후-102122.png
(80.4 kB)
스크린샷-2019-12-06-오후-102348.png
(80.6 kB)
Comment
Answer by harsh2580 · Dec 06, 2019 at 04:01 PM
try to print your your object tag in else other.gameObject.tag and see which it collides with