I am having big troubles with one simple task. I want when I detect collision check if the tag of the parent game object is equal to my value. Because I want to add a special effect only when colliding with that obstacle.
This is my hierarchy:
A - > PARENT
-B -> PARENT CHILD
--C -> Collider Gameobject
So I want when my player collides with C object to check is the tag in A equal to my value but I don't know how to get the tag of the PARENT A gameobject.
Thank you for your time :)