Question by
roeming · Jan 06, 2017 at 10:17 AM ·
getcomponentvariablesattack
Copying variables in game?
I've just learned some of the basics of unity, but i haven't found a solution to this problem of mine. if i have two objects with variables attack and defense, what would be the best way to have one object copy the attack and defense values of another object on contact? ive looked at getcomponent, but they said this can be taxing on the game. I want this to happen a lot, so i don't know what to do here.
Comment