Hello!
Is it possible to detect which collider was being hit? (using OnTriggerStay() Method! )
Basically I am trying to make a game where the player attacks the enemies per collision detection inside of the OnTriggerStay function. And the enemies have to attack the player too of course. The player has 2 colliders, one for attacking and one for the hitbox.
But the enemies are attacking only the attacking-collider, because it is the first one they basically see.
Is there any way to detect if the collider is the attacking-collider (sphere collider, isTrigger is true) or the hitbox collider (Box collider) ?
Note: The box and sphere colliders are on the same GameObject!
Thanks!