Hello, I have a problem: I have my object with 2 colliders on it and when it goes in trigger, OnTrigger event fires 2 times. How can I make it happens once, is there a way?
make a integer counter, upon collision, increment the integer, if its greater than 1, set it back to 0, and run the event only when the integer is 1. I havent tested it yet, just thinking it out from my head…
1 Like
I believe your script is attached to the parent game object which holds both the child triggers.
Are both of your colliders triggers? If yes, make only one of them a trigger.