Hi all! It’s me again.
I’m currently working on an isometric aRpg.
I currently have 2 collider on my enemies. One of them is a collider for collision, and is fitting the enemy size. The other one is a trigger, and is used to detect player click so the enemy is easier to select.
My issue is I just added an attack that use collider to trigger it’s damage.
I attack, and I damage everything that enter my trigger. I keep a temporary list with every instanceID I touch, so My attack won’t affect twice the same enemy.
I remembered that I had 2 collider on the enemy, and both of them retourn a different instanceID. Also, I don’t wantr to hit the bigger one, only the smaller collider.
Is there a way to do this? How can you handle 2 different size of trigger?
Thank you!