()
| 283 | } |
| 284 | |
| 285 | findPlayerNames () { |
| 286 | const playerNames = {} |
| 287 | for (const session of [this.session, this.otherSession]) { |
| 288 | if ((session != null ? session.get('team') : undefined)) { |
| 289 | playerNames[session.get('team')] = utils.getCorrectName(session) |
| 290 | } |
| 291 | } |
| 292 | return playerNames |
| 293 | } |
| 294 | |
| 295 | initGoalManager () { |
| 296 | this.goalManager = new GoalManager(this.world, this.level.get('goals')) |