- Home /
Card Game like yu-gi-oh
Qual é a melhor forma de criar um baralho, criar cada carta um prefab diferente ou fazer apenas um prefab e um script com todas as descrições das cartas?
What is the best way to create a deck, create each card a different prefab, or just make a prefab and script with all the descriptions of the cards?
Answer by TheSOULDev · Aug 28, 2017 at 06:18 PM
A deck should essentially be a stack structure which is, when shuffled, emptied into an array or a list, and then randomly reinserted into the stack. The size of the stack depends on the maximum amount of cards allowed in it.
The stack should only hold the Card ID numbers, and the information about cards etc. should be handled by other scripts.
Your answer
Follow this Question
Related Questions
Access object script from prefab script 1 Answer
Trading Card Game 5 Answers
Can't access Multiplayer Network Prefab script 0 Answers
JumpPad script for a JumpPad like Geometery dash 1 Answer
scripting and prefab saving error 0 Answers