fix(hero): 修正英雄和怪物初始默认动画为待机
调整HeroSpine组件的start方法初始调用为idle动画,修改怪物非下落场景下的默认状态从移动改为待机
This commit is contained in:
@@ -15,7 +15,7 @@ export class HeroSpine extends Component {
|
||||
|
||||
}
|
||||
protected start(): void {
|
||||
this.move();
|
||||
this.idle();
|
||||
}
|
||||
/** 初始化动画 */
|
||||
protected initAnimator() {
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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];
|
||||
|
||||
// ======================== 编辑器属性 ========================
|
||||
|
||||
|
||||
Reference in New Issue
Block a user