class CCSkeletonAnimation: public CCSkeleton {
public:
std::vector<AnimationState*> states;
how can i get information of states?
in sample, states[0] used to about time,loop state. but,my question is how can i know about states[1] ???
where are states come from?
other question:
how can i know animation's duration? there's 5 sec,3sec. where from?
do we have API reference of Spine runtime?
void ExampleLayer::update (float deltaTime) {
CCLog("%f",skeletonNode->states[0]->time );
if (skeletonNode->states[0]->loop) {
if (skeletonNode->states[0]->time > 5) skeletonNode->setAnimation("jump", false);
} else {
if (skeletonNode->states[0]->time > 3) skeletonNode->setAnimation("walk", true);
}