5cc97483e0
We now allow parameters to be unused. This is quite common in inherited methods. This allows removing a bunch of: //eslint-disable-next-line @typescript-eslint/no-unused-vars Also, "err" variables in catch MUST now be used and the special _exhaustiveCheck variable used in ":never" assigns can be unused.
38 lines
976 B
TypeScript
38 lines
976 B
TypeScript
import { gameManager } from "../Game/GameManager";
|
|
import { ResizableScene } from "./ResizableScene";
|
|
import { enableCameraSceneVisibilityStore } from "../../Stores/MediaStore";
|
|
import { analyticsClient } from "../../Administration/AnalyticsClient";
|
|
|
|
export const EnableCameraSceneName = "EnableCameraScene";
|
|
|
|
export class EnableCameraScene extends ResizableScene {
|
|
constructor() {
|
|
super({
|
|
key: EnableCameraSceneName,
|
|
});
|
|
}
|
|
|
|
preload() {}
|
|
|
|
create() {
|
|
this.input.keyboard.on("keyup-ENTER", () => {
|
|
this.login();
|
|
});
|
|
|
|
enableCameraSceneVisibilityStore.showEnableCameraScene();
|
|
}
|
|
|
|
public onResize(): void {}
|
|
|
|
update(time: number, delta: number): void {}
|
|
|
|
public login(): void {
|
|
analyticsClient.validationVideo();
|
|
|
|
enableCameraSceneVisibilityStore.hideEnableCameraScene();
|
|
|
|
this.scene.sleep(EnableCameraSceneName);
|
|
gameManager.goToStartingMap();
|
|
}
|
|
}
|