Hi, just wondering what your recommended method (in case I've missed it) would be in this situation.
I have 2 separate game objects that both use use the same skeleton animation, they use different skins however (a player skin and an enemy skin.)
I added code to the player object to manipulate the bones to look towards the mouse, this is what I use to find the bones:
animation = GetComponent<SkeletonAnimation>();
neck = animation.skeleton.FindBone ("neck");
leftShoulder = animation.skeleton.FindBone ("arm_upper_far");
rightShoulder = animation.skeleton.FindBone ("arm_upper_near");
The problem I have is that this will also find the "enemy" bones and so it will apply any changes I make to the bones on both of them.
Looking at the code for FindBone this does look intended, so I'm assuming that I should be using something else so that I only select the players bones. What should I do instead?
Thanks.