From cfd0faa38c764313f96601cfbc4566e9422208e3 Mon Sep 17 00:00:00 2001 From: panw Date: Fri, 24 Apr 2026 09:25:36 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=AD=A3=E9=98=B6=E6=AE=B5?= =?UTF-8?q?=E5=88=87=E6=8D=A2=E5=8A=A8=E7=94=BB=E8=A7=A6=E5=8F=91=E6=9D=A1?= =?UTF-8?q?=E4=BB=B6=E4=B8=8E=E7=9B=AE=E6=A0=87=E8=8A=82=E7=82=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 调整任务阶段切换时的动画表现,仅在进入战斗阶段时触发缩放动画。 将动画目标节点从 phaseNode 改为 time_node,并调整缩放比例以优化视觉反馈。 --- assets/script/game/map/MissionComp.ts | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/assets/script/game/map/MissionComp.ts b/assets/script/game/map/MissionComp.ts index 2faff639..93c7c619 100644 --- a/assets/script/game/map/MissionComp.ts +++ b/assets/script/game/map/MissionComp.ts @@ -382,15 +382,12 @@ export class MissionComp extends CCComp { label.string = `第 ${wave}/20 波`; } - // 阶段切换动感表现:针对阶段变化加入缩放与回弹动画,让流程充满心流体验 - if (targetPhase === MissionPhase.PrepareStart || - targetPhase === MissionPhase.PrepareEnd || - targetPhase === MissionPhase.BattleStart || - targetPhase === MissionPhase.BattleEnd) { - Tween.stopAllByTarget(phaseNode); - phaseNode.scale = v3(0.5, 0.5, 1); - tween(phaseNode) - .to(0.3, { scale: v3(1.5, 1.5, 1) }, { easing: "backOut" }) + // 阶段切换动感表现:只在进入战斗阶段跳动一下,让流程充满心流体验 + if (targetPhase === MissionPhase.BattleStart) { + Tween.stopAllByTarget(this.time_node); + this.time_node.scale = v3(1, 1, 1); + tween(this.time_node) + .to(0.3, { scale: v3(1.2, 1.2, 1) }, { easing: "backOut" }) .to(0.2, { scale: v3(1, 1, 1) }, { easing: "sineInOut" }) .start(); }