Fixing null initialization

This commit is contained in:
David Négrier 2020-06-11 10:29:11 +02:00
parent 77167c28a6
commit 43c7c9ad07

View File

@ -35,7 +35,7 @@ export interface MapObject {
export class GameManager {
//status: number;
private ConnectionInstance: Connection;
private currentGameScene: GameScene|null;
private currentGameScene: GameScene|null = null;
private playerName: string;
SimplePeer : SimplePeer;
private characterUserSelected: string;
@ -168,7 +168,7 @@ export class GameManager {
private oldMapUrlFile : string;
private oldInstance : string;
private scenePlugin: ScenePlugin;
private reconnectScene: Scene|null;
private reconnectScene: Scene|null = null;
switchToDisconnectedScene(): void {
if (this.currentGameScene === null) {
return;