Quantcast
Channel: Unity Forum
Viewing all articles
Browse latest Browse all 1466670

Best way to accomplish this?

$
0
0
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?

Viewing all articles
Browse latest Browse all 1466670

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>