When you instantiate a gameobject, it will not have the variables you set in the hierarchy. That simply isn't how it works. You'll have to write some code that "spawns" the objects with the correct variable settings.
I have no idea what "How to assign transfrom array in the code?" means.
↧