Quantcast
Channel: Questions in topic: "enemy"
Viewing all articles
Browse latest Browse all 1488

How could i access to a specific collider box if it is in a children of the main Object? The script is in the main object.

$
0
0
Im making a 2D game so i want my enemy to receive damage when my player hits, the issue that i have is that i dont know how to call just the collider box that is in a children of the main objet(in this case the enemy), so it can "comparetag" with the weapon of my player. I was trying with ontriggerenter2D the issue is that i dont know how to only access to the box colliders of a especific children because there are other children colliders that interfere in the process. Any one can help me pls? Here are the image references: ![alt text][1] ![alt text][2] [1]: /storage/temp/182780-replace-that.jpg [2]: /storage/temp/182781-reference.jpg @Hellium

Viewing all articles
Browse latest Browse all 1488

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>