private void DownloadPlacementAsset(MultiTowerFloorParam param) { if (param.map == null) { return; } for (int index1 = 0; index1 < param.map.Count; ++index1) { if (!string.IsNullOrEmpty(param.map[index1].mapSetName)) { string src = AssetManager.LoadTextData(AssetPath.LocalMap(param.map[index1].mapSetName)); if (src != null) { JSON_MapUnit jsonObject = JSONParser.parseJSONObject <JSON_MapUnit>(src); if (jsonObject != null) { for (int index2 = 0; index2 < jsonObject.enemy.Length; ++index2) { DownloadUtility.LoadUnitIconMedium(jsonObject.enemy[index2].iname); } } } } } }