I would like to simplify this code, so as I increase the number of instances of the BuildingFamily I don't have to keep adding additional code. I know there is probably a really easy way to do this, but I keep going around in circles.
A quick summary of what it does.
As the player nears a building, the facade fades to reveal the inside.
<img src="http://www.howardfrancisdavies.co.uk/problem.png" border="0" />
I would be greateful for some help.