I’m having a problem with OnTriggerStay2D and OnTriggerEnter2D.
Basically, I’ve two characters and a door. If the door trigger is being activated and you press ‘u’ while over a door, you move through the door. Except no matter what, it always only works for one of the characters.
If I use OnTriggerStay2D, CharA causes the trigger to fire every frame, so he can enter the door. When I use OnTriggerEnter2D, CharB causes it to fire everyframe, so he can enter the door. But Char B doesn’t work with OnTriggerStay2D and, likewise, charA doesn’t work with OnTriggerEnter2D.
Both chars are set up the same way; they’ve different sprites and animations, but they all have the same types of colliders, rigidbodies, tag names, layers, etc etc.
Any idea what could be causing this?