In my game, I want to create a few spells and I want players to be able to buy spells and then have them added to their avatar.
However, if I just add a game component, all the values will be initiated to default, so how can I ensure that the spell added has the values properly set to what they should be?
My solution:
Create a game object that contains every spell possible initialized at the right values and then add a copy of that component to the player's avatar.
Is this the best way to do...
Best way to accomplish this?
However, if I just add a game component, all the values will be initiated to default, so how can I ensure that the spell added has the values properly set to what they should be?
My solution:
Create a game object that contains every spell possible initialized at the right values and then add a copy of that component to the player's avatar.
Is this the best way to do...
Best way to accomplish this?