I have a family of objects. I have an event that says "when a member of the family is clicked, do something". Is there a way to differenciate the specific object type that was clicked?
Here's a basic example of what I mean:
Family "Pokemons" contains the following objects: "Bulbasaur", "Charmander" and "Squirtle".
On Mouse click on "Pokemon", do something. If the Pokemon is a charmander, do another thing. If it's a bulbasaur, do something else. And so on.
(The text with emphasis is the part that I'm wondering how to do)
So, again, my question is, in an event that was triggered by a family, how can I figure out which family member (which object type) is actually involved?