Hi guys! Right now I’m developing a game with the ability to instantiate objects on the terrain. Now I’m closing up on 20 different buildings, which right now are all instantiated from one script with a variable for every object which is the one to instantiate, rotate and so on. Now, I would like to clean this up a bit, and my idea was to have every script and the associated building (object) in an empty GameObject, and then have a Generic list containing all scripts and then if I choose for example object 5 it should use the script object-5.cs and and then instantiate the object associated with the object 5 script. How would I do this, or is it another way?
Thanks!