Hi,
I’m developing a card game. Each card has some values associated (title, descriptions, habilities, power, cost, etc) and I’m not sure what would be the best option to store this.
I thought 3 solutions:
- Creating a prefab for each card and storing the texts on public variables, editing them in the inspector. I don’t like this option because if I want to make any change on the style of the cards I will have to modify all prefabs.
- Creating a general template for the cards and loading its data from a JSON/XML file. I don’t like this options because the file is readable & editable by the player.
- Creating a general template and storing all card data in a static class. But I’m not sure if this is a good practice.
What would be a good option to do this?
Thanks.