private void SetupEnemyListItem(Transform t, EnemyDataForDisplay enemyData) { //IL_0014: Unknown result type (might be due to invalid IL or missing references) RegionMapDescriptionEnemyItem regionMapDescriptionEnemyItem = t.GetComponent <RegionMapDescriptionEnemyItem>(); if (regionMapDescriptionEnemyItem == null) { regionMapDescriptionEnemyItem = t.get_gameObject().AddComponent <RegionMapDescriptionEnemyItem>(); } regionMapDescriptionEnemyItem.InitUI(); regionMapDescriptionEnemyItem.SetUpEnemyOnly(enemyData.data, enemyData.level); SetEvent(t, "SELECT_HAPPEN", new object[2] { (int)enemyData.data.id, string.Empty }); }
private bool IsExistTargetEnemy(DeliveryTable.DeliveryData deliveryData, uint mapId) { if (deliveryData == null) { return(false); } bool flag = false; List <uint> mapIdList = deliveryData.GetMapIdList(); if (mapIdList != null) { flag = true; if (mapIdList.Contains(mapId)) { return(true); } } if (flag) { return(false); } List <uint> enemyIdList = deliveryData.GetEnemyIdList(); if (enemyIdList == null) { return(false); } int i = 0; for (int count = enemyDataList.Count; i < count; i++) { List <uint> list = enemyIdList; EnemyDataForDisplay enemyDataForDisplay = enemyDataList[i]; if (list.Contains(enemyDataForDisplay.data.id)) { return(true); } } return(false); }