private void ShowAllMissions() { UIUtil.DestoryTransformChild(_missionRoot); foreach (var item in GameManager.AllMissions) { GameObject child = UIUtil.AppendChild(_missionRoot.gameObject, _missionPrefab); MissionComponent com = child.GetComponent <MissionComponent>(); com.DataContent = item; } RefreshList(); }