Rename syncRuntimeNpcScheduleToCurrentClock to syncRuntimeScheduleToCurrentClock
This commit is contained in:
@@ -459,7 +459,7 @@ export class RuntimeHost {
|
|||||||
this.runtimeScene = runtimeScene;
|
this.runtimeScene = runtimeScene;
|
||||||
this.currentWorld = runtimeScene.world;
|
this.currentWorld = runtimeScene.world;
|
||||||
this.syncRuntimeClockState(runtimeScene.time);
|
this.syncRuntimeClockState(runtimeScene.time);
|
||||||
this.syncRuntimeNpcScheduleToCurrentClock();
|
this.syncRuntimeScheduleToCurrentClock();
|
||||||
this.activeController?.deactivate(this.controllerContext, {
|
this.activeController?.deactivate(this.controllerContext, {
|
||||||
releasePointerLock: !preservePointerLockDuringLoad
|
releasePointerLock: !preservePointerLockDuringLoad
|
||||||
});
|
});
|
||||||
@@ -2504,7 +2504,7 @@ export class RuntimeHost {
|
|||||||
dt
|
dt
|
||||||
);
|
);
|
||||||
if (this.sceneReady) {
|
if (this.sceneReady) {
|
||||||
this.syncRuntimeNpcScheduleToCurrentClock();
|
this.syncRuntimeScheduleToCurrentClock();
|
||||||
}
|
}
|
||||||
this.applyDayNightLighting();
|
this.applyDayNightLighting();
|
||||||
this.clockPublishAccumulator += dt;
|
this.clockPublishAccumulator += dt;
|
||||||
@@ -2573,7 +2573,7 @@ export class RuntimeHost {
|
|||||||
this.firstPersonController.teleportTo(target.position, target.yawDegrees);
|
this.firstPersonController.teleportTo(target.position, target.yawDegrees);
|
||||||
}
|
}
|
||||||
|
|
||||||
private syncRuntimeNpcScheduleToCurrentClock() {
|
private syncRuntimeScheduleToCurrentClock() {
|
||||||
if (this.runtimeScene === null || this.currentClockState === null) {
|
if (this.runtimeScene === null || this.currentClockState === null) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user