unlocking zooming with a delay when entering / leaving focusable zone

This commit is contained in:
Hanusiak Piotr
2022-01-12 12:08:11 +01:00
parent 3f3f488924
commit 58af1f05f7
3 changed files with 19 additions and 6 deletions
+1 -1
View File
@@ -855,7 +855,7 @@ export class GameScene extends DirtyScene {
for (const zone of zones) {
const focusable = zone.properties?.find((property) => property.name === "focusable");
if (focusable && focusable.value === true) {
this.cameraManager.leaveFocusMode(this.CurrentPlayer);
this.cameraManager.leaveFocusMode(this.CurrentPlayer, 1000);
break;
}
}