fix(hero): 修正英雄和怪物初始默认动画为待机

调整HeroSpine组件的start方法初始调用为idle动画,修改怪物非下落场景下的默认状态从移动改为待机
This commit is contained in:
pan
2026-06-11 10:51:01 +08:00
parent 10f5a9f35d
commit 0560999ce5
3 changed files with 3 additions and 3 deletions

View File

@@ -15,7 +15,7 @@ export class HeroSpine extends Component {
} }
protected start(): void { protected start(): void {
this.move(); this.idle();
} }
/** 初始化动画 */ /** 初始化动画 */
protected initAnimator() { protected initAnimator() {

View File

@@ -221,7 +221,7 @@ export class Monster extends ecs.Entity {
if (dropDistance > 0) { if (dropDistance > 0) {
view.playEnd("down"); view.playEnd("down");
} else { } else {
view.status_change("move"); // 直接进入移动状态 view.status_change("idle"); // 直接进入待机状态
} }
move.moving = true; move.moving = true;

View File

@@ -60,7 +60,7 @@ export class MissionMonCompComp extends CCComp {
/** 怪物出生掉落高度 */ /** 怪物出生掉落高度 */
private static readonly MON_DROP_HEIGHT = 0; private static readonly MON_DROP_HEIGHT = 0;
/** 3行高度偏移 (行距) */ /** 3行高度偏移 (行距) */
private static readonly ROW_Y_OFFSETS = [80, 0, -80]; private static readonly ROW_Y_OFFSETS = [90, 0, -90];
// ======================== 编辑器属性 ======================== // ======================== 编辑器属性 ========================