I'm having trouble calling animations of child objects from the parent object. If I have an object "Man", to which I have a child containing the exported Spine animations "Spine GameObject (skeleton)", then I use the following code to call animation "Walk":
skeletonAnimation = GetComponentInChildren<SkeletonAnimation>();
activeTrackEntry = skeletonAnimation.AnimationState.SetAnimation(0, "Walk", true);
But what if I then have a child object called "Weapon" with its own Spine animations attached to parent object "Man"? To access the script called "Skeleton Animation" in object "Weapon" I'd think to use "GetComponentInChildren<SkeletonAnimation>()". But this will access the script component of "Man", not "Weapon". How do I specify I want to access the script attached to object "Weapon"?