From 0560999ce524abbe3873bbf50cd37f57fcbd7326 Mon Sep 17 00:00:00 2001 From: pan Date: Thu, 11 Jun 2026 10:51:01 +0800 Subject: [PATCH] =?UTF-8?q?fix(hero):=20=E4=BF=AE=E6=AD=A3=E8=8B=B1?= =?UTF-8?q?=E9=9B=84=E5=92=8C=E6=80=AA=E7=89=A9=E5=88=9D=E5=A7=8B=E9=BB=98?= =?UTF-8?q?=E8=AE=A4=E5=8A=A8=E7=94=BB=E4=B8=BA=E5=BE=85=E6=9C=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 调整HeroSpine组件的start方法初始调用为idle动画,修改怪物非下落场景下的默认状态从移动改为待机 --- assets/script/game/hero/HeroSpine.ts | 2 +- assets/script/game/hero/Mon.ts | 2 +- assets/script/game/map/MissionMonComp.ts | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/assets/script/game/hero/HeroSpine.ts b/assets/script/game/hero/HeroSpine.ts index 48bd0e3d..67e45a6c 100644 --- a/assets/script/game/hero/HeroSpine.ts +++ b/assets/script/game/hero/HeroSpine.ts @@ -15,7 +15,7 @@ export class HeroSpine extends Component { } protected start(): void { - this.move(); + this.idle(); } /** 初始化动画 */ protected initAnimator() { diff --git a/assets/script/game/hero/Mon.ts b/assets/script/game/hero/Mon.ts index db6894c2..7797be92 100644 --- a/assets/script/game/hero/Mon.ts +++ b/assets/script/game/hero/Mon.ts @@ -221,7 +221,7 @@ export class Monster extends ecs.Entity { if (dropDistance > 0) { view.playEnd("down"); } else { - view.status_change("move"); // 直接进入移动状态 + view.status_change("idle"); // 直接进入待机状态 } move.moving = true; diff --git a/assets/script/game/map/MissionMonComp.ts b/assets/script/game/map/MissionMonComp.ts index e84a71a0..b9230ae9 100644 --- a/assets/script/game/map/MissionMonComp.ts +++ b/assets/script/game/map/MissionMonComp.ts @@ -60,7 +60,7 @@ export class MissionMonCompComp extends CCComp { /** 怪物出生掉落高度 */ private static readonly MON_DROP_HEIGHT = 0; /** 3行高度偏移 (行距) */ - private static readonly ROW_Y_OFFSETS = [80, 0, -80]; + private static readonly ROW_Y_OFFSETS = [90, 0, -90]; // ======================== 编辑器属性 ========================