hey there,
I’m not sure what it’s called, when you attach an object to another object, but anyway…
I’m developing an android game, and everytime I hold my finger on the screen, I zoom with the scope, and when I release I shoot. However my enemies consists of 2 parts: the body and the head (which is attached). Also, when I release my finger from the screen, it sends out a raycast. I then destroy what the raycast hit.
My problem is that I only destroy the head, but at the moment I want to destroy the whole body. How do I destroy an object and it’s attachment, when I am referring to to the attachment.
~Mikkelet