void AnimationComplete(Spine.TrackEntry trackEntry) { switch (spineType) { case ESpineType.SdSpine: if (trackEntry.animation.name != "01_idle" && isLoop == false && isEndStop == false) { SetAnimation("01_idle"); } break; case ESpineType.SpSpine: if (trackEntry.animation.name != "a_01_idle1" && isLoop == false && isEndStop == false) { SetAnimation("a_01_idle1"); } break; default: break; } if (OnComplete != null) { OnComplete(); OnComplete = null; // 1회만 보내기 위해 null처리 } }
void AnimationComplete(Spine.TrackEntry trackEntry) { //switch (spineType) //{ // case ESpineType.SdSpine: // if (trackEntry.animation.name != "01_idle" && isLoop == false) // SetAnimation("01_idle"); // break; // case ESpineType.SpSpine: // if (trackEntry.animation.name != "a_01_idle1" && isLoop == false) // SetAnimation("a_01_idle1"); // break; // default: // break; //} if (trackEntry.animation.name != "01_idle" && isLoop == false) { SetAnimation("01_idle"); } if (OnComplete != null) { OnComplete(); OnComplete = null; // 1회만 보내기 위해 null처리 } }