I have an array of cards to be dealt. My trouble is that each card has 2 versions (not just front and back but Front A and Front B) and I need to randomly select the cards to be dealt but then make sure both versions of the card are included. (I can use random.range to deal them. I just haven’t been able to figure out how to get both versions included.)
Also, I am (obviously) a beginner so speak slowly please.
I would make the card object have 2 versions and then have the version selected randomly when shuffled, maybe use scriptable objects for all the card data that changes, then you can have 2 references set up:
then a variable to determine which version
then when shuffle for each card you would have to randomly pick a one, like do something like:
There are a lot of ways you could set it up, you could even use a list of CardData objects so that each card could have a different amount of versions, or to expand it… etc… This is mostly pseudo code.