private void OnFetchConfig(GameSimConfigResponse gameSimConfigResponse) { string levelName = gameSimConfigResponse.GetString("level"); LevelSO loadLevel = null; foreach (LevelSO levelSO in levelList) { if (levelSO.name == levelName) { loadLevel = levelSO; break; } } if (loadLevel == null) { Debug.Log("Could not find level with name: " + levelName); loadLevel = levelList[0]; } this.levelSO = loadLevel; match3.SetLevelSO(loadLevel); }