diff --git a/assets/libs/animator-move/MoveTo.ts b/assets/libs/animator-move/MoveTo.ts index fb7f1f6..8f5ed50 100644 --- a/assets/libs/animator-move/MoveTo.ts +++ b/assets/libs/animator-move/MoveTo.ts @@ -93,6 +93,10 @@ export class MoveTo extends Component { // 移动完成事件 if (this.timer.update(dt)) { + if (this.ns == Node.NodeSpace.WORLD) + this.node.worldPosition = this.end; + else + this.node.position = this.end; this.exit(); } }