I have a Tower Defense game and a family of objects called "Icons" (there are 5 different tower icons inside this family).
The "Icons" family has the behavior DragDrop on it.
When I drag an object in this family, I need to kick off an event and that event needs to know which of the 5 tower types I am dragging, so I can place the correct TowerType at the drop location.
In pseudocode, if these conditions are met:
Icons -> On DragDrop
Icons.ObjectType = "Tower1-Icon"
Then is should do this action:
Icons Spawn Tower1
The problem is that second condition "Icons.ObjectType" doesn't seem to exist.
When I have the "Icons" family selected, how do I know which of the objects inside it I am actually working with - what is the test for this?