예제 #1
0
void CCSkeleton::setMix (const char* fromName, const char* toName, float duration) {
	AnimationStateData_setMixByName(state->data, fromName, toName, duration);
}
예제 #2
0
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);
}