This commit is contained in:
Ino 2025-02-06 14:38:07 +09:00
parent c35c1f5072
commit a2fe0d9aaf
1 changed files with 0 additions and 9 deletions

View File

@ -78,20 +78,11 @@ public class MobControlMgr : MyCoroutine
case eSpawnerType.Phase: case eSpawnerType.Phase:
case eSpawnerType.PhaseAllKill: case eSpawnerType.PhaseAllKill:
var list_ids = m_MonsterAppearData.Get_MobIds(); var list_ids = m_MonsterAppearData.Get_MobIds();
Debug.Log("list_ids : " + list_ids);
Debug.Log("list_make_mobs : " + list_make_mobs);
Debug.Log("indexCopy : " + indexCopy);
int findindex = list_ids.FindIndex(f => f == list_make_mobs[indexCopy].n_MonsterID); int findindex = list_ids.FindIndex(f => f == list_make_mobs[indexCopy].n_MonsterID);
if (findindex >= 0 && findindex < dic_actors.Count) // 인덱스가 유효한지 체크 if (findindex >= 0 && findindex < dic_actors.Count) // 인덱스가 유효한지 체크
{
dic_actors[findindex].Add(mob); dic_actors[findindex].Add(mob);
}
else else
{
Debug.LogError($"Invalid findindex: {findindex}, MonsterID: {list_make_mobs[indexCopy].n_MonsterID}"); Debug.LogError($"Invalid findindex: {findindex}, MonsterID: {list_make_mobs[indexCopy].n_MonsterID}");
}
break; break;
} }