I'm currently working on a Unity project that uses perlin noise to build modern urban terrain. At each noise value I instantiate a prefab building (first floor) from an array. The next step is to instantiate prefab floors based on which ever building was chosen from the array. (e.g. At a point building_0 is chosen and the ground floor set, the code then loops through the floors associated with building_0 placing them until it reaches the roof level. At another point building_4 is chosen and the ground floor set, the code then loops through the floors associated with building_4 placing them until it reaches the roof level. This would continue until all buildings have been generated.)
Where I'm running in to a problem is designing the 2d array to facilitate multiple prefab building types with their associated prefab floors.
If my newness to this is making this difficult to understand, please let me know and I will try to elaborate. Below is the link to my single building test code on GitHub.
Can anyone point me in the right direction?
Thank you in advance for any assistance you can offer.