So I'm using a single object for each unit in a strategy game, using local variables to distinguish the team. I need a method to determine if it is overlapping another object of itself, but only if that object belongs to the other team. I'm not sure how to test this specifically.
For example, I need:
If unit with team = 1 collides with unit with team = 2, then trigger. This should be simple but the overlapping event is limiting me and I'm not sure what to incorporate to overcome this.
Thanks!