Create menu to set your quality video and game

This commit is contained in:
Gregoire Parant 2020-11-27 16:24:07 +01:00
parent 26b81cc788
commit 27634a61ee
6 changed files with 281 additions and 52 deletions

View file

@ -462,9 +462,7 @@ export class GameScene extends ResizableScene implements CenterListener {
this.initUsersPosition(roomJoinedMessage.users);
this.connectionAnswerPromiseResolve(roomJoinedMessage);
// Analyze tags to find if we are admin. If yes, show console.
if (this.connection.hasTag('admin')) {
this.ConsoleGlobalMessageManager = new ConsoleGlobalMessageManager(this.connection, this.userInputManager);
}
this.ConsoleGlobalMessageManager = new ConsoleGlobalMessageManager(this.connection, this.userInputManager, this.connection.hasTag('admin'));
});
connection.onUserJoins((message: MessageUserJoined) => {