mirror of
https://gitee.com/dgflash/oops-plugin-framework.git
synced 2026-05-30 18:39:18 +08:00
优化MoveTo移动结束有略微偏移问题
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user