In my game, I have 3 "pairs" of objects. What I would like to do, is when a object is destroyed a specific other object also gets destroyed. So:
Object A - Object1
Object B - Object2
Object C - Object3
When object A is destroyed, Object1 gets automatically destroyed. The same for Object B and 2 etc. How would I achieve this? Should I set an instance variable on Objects A, B, C with the UID of Objects 1,2,3, and then..?
I hope I make sense