hi
i was using playerSprite, now, i''v move all animation in spine, so now i use skeleton animation,
the thing is, i'm also using "raycast character animation"
so my problem is here =
public void CharacterAnimationEvent (CharacterState state, CharacterState previousState) {
if (!playerSprite.IsPlaying("Change")) { // <
---
here's my problem
switch (state) {
case CharacterState.IDLE: Idle(); break;
case CharacterState.RUNNING: Walk(); break;
case CharacterState.JUMPING: Jump(); break;
}
}
}
protected void Walk () {
//playerSprite.Play( "Idle" + suffix); old version
skeletonAnimation.state.AddAnimation(0, "Walk", true, 0); // new version
CheckDirection();
}
so how do i change
if (!playerSprite.IsPlaying("Change")) {
?? any idear