I am making a card game in Unity where I need a script that can make a random sequence. To do this I will want to put in all of the cards for my game and have the script make them into a new random sequence each time so that the card draws are not always the same. However, I don't just want to get a random card one at a time as once the card is used it must go to the end of the sequence (as if you had moved it to the bottom of the card deck, so it can be cycled).
How can i achieve this random sequence in Unity C#?
Aucun commentaire:
Enregistrer un commentaire