I'm looking for ways of being able to tag objects to save repeating code. Example, I want to tag all my physics objects as being "Physics" so that if I shoot a weapon and it hits an object tagged as "Physics" the object reacts.
Currently I'm typing events like "Bullet on collision with objectA" and repeating it for each object the bullet collides with.
I tried grouping objects as a family but onDestroy seemed to destroy every single instance of the objects I grouped.
Am I just being an idiot? Probably.