spineUser yazdıcan you refactor your CCSkelenton class?
We're all going to need to subclass it to get the functionality we want and it's currently not extension friendly lots of construction code is in the static constructor, meaning I have to duplicate that code and diff it when you do runtime updates... not nice.
Yeah, good point. I'll fix that up.
spineUser yazdıI don't get why we have state1 and state2 from the same stateData in the same state.. what's the function of that? I'm presuming it's a typo.. or is the state1 assigment menat to be above the previous line?
AnimationStateData stores a mapping where the keys are "animation A + animation B" and the value is "mix duration". Multiple AnimationState instances can use the same AnimationStateData. In the example I used a single AnimationStateData for both. You could use a separate one for each. As mentioned, you could also store the AnimationStateData externally, so it can be reused if you are creating multiple of your CCSkeleton instances.