同步主站 Cocos 当前工程:关卡资源、运行脚本与打包工具。
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -28,7 +28,10 @@ export class VehicleController extends Movement {
|
||||
|
||||
/** 不调用 super.start(),避免 component.start 晚于 LevelInit 绑定后再次用 spawn 方向刷贴图 */
|
||||
start() {
|
||||
this.syncCommittedCellFromPosition();
|
||||
if (!this.getCommittedCell()) {
|
||||
this.syncCommittedCellFromPosition();
|
||||
this.markDrawOrderDirty();
|
||||
}
|
||||
if (this.player) {
|
||||
this.syncFacingFromRider();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user