Fixing null initialization
This commit is contained in:
parent
77167c28a6
commit
43c7c9ad07
@ -35,7 +35,7 @@ export interface MapObject {
|
|||||||
export class GameManager {
|
export class GameManager {
|
||||||
//status: number;
|
//status: number;
|
||||||
private ConnectionInstance: Connection;
|
private ConnectionInstance: Connection;
|
||||||
private currentGameScene: GameScene|null;
|
private currentGameScene: GameScene|null = null;
|
||||||
private playerName: string;
|
private playerName: string;
|
||||||
SimplePeer : SimplePeer;
|
SimplePeer : SimplePeer;
|
||||||
private characterUserSelected: string;
|
private characterUserSelected: string;
|
||||||
@ -168,7 +168,7 @@ export class GameManager {
|
|||||||
private oldMapUrlFile : string;
|
private oldMapUrlFile : string;
|
||||||
private oldInstance : string;
|
private oldInstance : string;
|
||||||
private scenePlugin: ScenePlugin;
|
private scenePlugin: ScenePlugin;
|
||||||
private reconnectScene: Scene|null;
|
private reconnectScene: Scene|null = null;
|
||||||
switchToDisconnectedScene(): void {
|
switchToDisconnectedScene(): void {
|
||||||
if (this.currentGameScene === null) {
|
if (this.currentGameScene === null) {
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user