public void roomSelected(int roomNumber) { CollocationRooms roomSelected = this.loadedRooms[roomNumber]; GameInfoCollocation.currentGame.currentRoom = roomSelected.position; GameInfoCollocation.currentGame.currentCollocationLevelID = roomSelected.collocation_level_id; GameInfoCollocation.currentGame.currentGameType = roomSelected.game_type; GameInfoCollocation.currentGame.currentGamePointsMultiplier = roomSelected.points_multiplier; if (roomSelected.points_multiplier > 1) { SceneSwitcher.LoadScene2(GameSettings.SCENE_FILLER_DOUBLE_POINTS); } else { SceneSwitcher.LoadScene2(GameSettings.SCENE_FILLER_WORD_COL); } }
public void parseLevelInfo() { GameInfoCollocation.info.wordsCompleted = 0; this.loadedRooms = new Dictionary <int, CollocationRooms>(); this.scoreText.text = levelInfo.score.ToString(); foreach (CollocationRooms room in levelInfo.rooms) { this.loadedRooms.Add(room.position, room); this.currentRoom = room; if (room.position == 1) { this.checkRoom(room1); this.setRoomTitle(room.level_title); this.next_round_limit = room.next_round; } if (room.position == 2) { this.checkRoom(room2); } if (room.position == 3) { this.checkRoom(room3); } if (room.position == 4) { this.checkRoom(room4); } if (room.position == 5) { this.checkRoom(room5); } if (room.position == 6) { this.checkRoom(room6); } if (room.position == 7) { this.checkRoom(room7); } if (room.position == 8) { this.checkRoom(room8); } if (room.position == 9) { this.checkRoom(room9); } if (room.position == 10) { this.checkRoom(room10); } } this.checkEndRoom(); }