Say for example I have a button object and a door object. And I have lots of instances of each. What's the best way to link a specific button instance to a door instance.
I can think of a few possibilities: uids or indexes stored in local variables, but they seem a bit inelegant. Or is there something obvious that I'm missing.