Ok, so long story short, I am developing a button mechanic in my game where certain enemy types can overlap the button and it activates a gate.
One specific enemy type, the ice grunt, has to have its own condition for this to work, as it's collisions get disabled but then reenabled when it is downed.
Ice grunt IS part of the Enemies family, but this shouldn't effect the outcome of this code, as the code that causes the button to activate when theyre in range of the button's LOS ONLY triggers when they aren't already colliding with it.
I apologize if this code seems a bit messy/disorganized, I've been trying to rewrite it in different ways to get it to work, but none did.
For some reason, both the deactivation and activation code are triggered when the downed ice grunt overlaps the button. Why is this happening?