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 {
this.move();
this.idle();
}
/** 初始化动画 */
protected initAnimator() {

View File

@@ -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;