c# - Child Trigger event on parent Script -
i making game in unity3d , have situation.
i have parent children. eg:
parent:
- child 1
- child 2
- child 3
on parent , child 3 have component box collider 2d property trigger checked.
on parent have script ontriggerenter2d function
but if child 3 collide object trigger function on parent's script.
i don't need trigger event when child collide.
what can do?
i solved putting kinematic rigidbody on child.
Comments
Post a Comment