I wrote a beautiful script. It’s the longest and most complicated I’ve ever written. It’s probably not that advanced, but I used several enumerators, for example, which I’ve never used before, and it was pushing my brain to it’s limits.
The script selects one of three meshes at random, selects one of three sizes at random or decides which size it needs to be based off the size of the object instantiating it. It moves the game object in a random direction, and rotates it in a random fashion. And a bunch of other smaller things. I did this some what for the sake of learning new techniques, but I also thought it would be neater to have one object prefab, and one script to change it up a lot instead of having many prefabs(like small with mesh 1, small with mesh 2, small with mesh 3, medium with mesh 1…).
I had many hardships that could have been avoided by using many prefabs, but I don’t regret my decision to use one. But I am curious? Which requires more computational power?