I am having trouble trying to figure out a way to generate a combined block from two random prefabs. There will be 8 different numbered blocks and if I had to create each combined prefab instead of randomly generating from the 8 numbered squares, I would end up with 140 combined prefabs. Before I go about this, I wanted to see if there was any C# code I could write to do this.
I have 8 numbered squares. Each prefab would display and store 1 number. Then two of the numbered blocks would spawn on screen.
This certainly has helped and the code worked perfectly.
I am not sure that the script should be attached to the camera if I am trying to instantiate the combined blocks as well as add other logic to the new blocks. I am going to want each new blocks to instantiate one at a time and drop to the bottom of a board similar to Tetris.
I have followed a Tetris clone tutorial and think I can handle most of the game.