I have 5 objects in a family called enemies.
I want that, when I touch one of them, their variable "isActive" changes to "1" and the non-touched objects "isActive" variable changes to "0".
Only one object can be active at the time.
I used on touched object to change the touched object, but how about the non-touched? I tried invert is touching object, but then it changes the touched object when I stop touching it too, not just the others.
How can I do that?