im working on a TCG (trading card game) and want to clean up my method to create new cards.
Now i want to know, how to select a prefab from a bool..
It should look like this:
If boolean == true -> use the 1. Prefab
else -> use the 2. Prefab
In this case the prefabs are different card layouts.
Or maybe even better, there is a way to integrate a “dropdown menu” to the inspector like:
Warrior == 1
Paladin == 2
Mage == 3
and so on…
And i could use this information of the current selected “class” to call a function.
Im sorry realy sorry for my bad english. If you dont understand something just ask and i’ll try to explain it.