From 4585ee59d67b8cf5eb3f63145bc814150621e542 Mon Sep 17 00:00:00 2001 From: panfudan Date: Mon, 2 Jun 2025 20:38:13 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E5=8A=A8=E7=94=BB=E4=B8=8D?= =?UTF-8?q?=E5=88=87=E6=8D=A2=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/script/game/hero/HeroAnmComp.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/script/game/hero/HeroAnmComp.ts b/assets/script/game/hero/HeroAnmComp.ts index fbf9635f..ac02de66 100644 --- a/assets/script/game/hero/HeroAnmComp.ts +++ b/assets/script/game/hero/HeroAnmComp.ts @@ -24,7 +24,7 @@ export default class HeroAnmComp extends Component{ spine.setCompleteListener((trackEntry) => { var animationName = trackEntry.animation ? trackEntry.animation.name : ""; if (animationName === 'Attacking'||animationName==='Taunt'||animationName==='Hurt') { - // this.spine!.clearTrack(1); + this.spine!.clearTrack(1); } var loopCount = Math.floor(trackEntry.trackTime / trackEntry.animationEnd); // console.log("[track %s][animation %s] complete: %s", trackEntry.trackIndex, animationName, loopCount);