I'm doing a memory game where you have to turn two equal cards to score points, otherwise the cards will turn around again.
I have been asked to randomly insert the letters in the form of a grid.
In my code I have a single prefab that instantiates me and just repeats it. To those repeated prefabs, it assigns a random texture, applying in turn the same name to compare if the two selected cards match.
So far so good, but I must make them be installed in pairs. Let's say: if you installed a black K, I must make sure that the pair of that black K is instanced. And in turn, that in the next game, do not repeat the images that I used in that specific game, applying some type of shuffling.
Has anyone encountered something like this?