...
This commit is contained in:
parent
c35c1f5072
commit
a2fe0d9aaf
|
|
@ -78,20 +78,11 @@ public class MobControlMgr : MyCoroutine
|
|||
case eSpawnerType.Phase:
|
||||
case eSpawnerType.PhaseAllKill:
|
||||
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);
|
||||
|
||||
if (findindex >= 0 && findindex < dic_actors.Count) // 인덱스가 유효한지 체크
|
||||
{
|
||||
dic_actors[findindex].Add(mob);
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.LogError($"Invalid findindex: {findindex}, MonsterID: {list_make_mobs[indexCopy].n_MonsterID}");
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue