void CCSkeleton::setMix (const char* fromName, const char* toName, float duration) { AnimationStateData_setMixByName(state->data, fromName, toName, duration); }
void CCSkeletonAnimation::setMix (const char* fromAnimation, const char* toAnimation, float duration, int stateIndex) { CCAssert(stateIndex >= 0 && stateIndex < (int)states.size(), "stateIndex out of range."); AnimationStateData_setMixByName(states[stateIndex]->data, fromAnimation, toAnimation, duration); }