public void MakeKnightList() { selectKnighObj.SetActive(true); CodeBox.ClearList(selectKnightListTr); foreach (Knight k in unit.knights) { if (k.teaming == true) { continue; } GameObject obj = CodeBox.AddChildInParent(selectKnightListTr, knightPrefab); obj.GetComponent <WorldKnightPrefab>().SetData(k); } //초기화. selectDayList.SetData(dungeon.GetDungeonProgress(d).SearchP == 100 ? true : false); CodeBox.ClearList(selectView); txrArr.Clear(); Cnt = 0; }