Commit 056ea63f authored by LiLiuZhou's avatar LiLiuZhou

1

parent 9248f9d5
......@@ -70,8 +70,6 @@ public class LeeMainController : MonoBehaviour
return;
}
for (int i = 0; i < model.wdDataList.Count; i++)
{
GameObject obj=GameObject.Instantiate(Resources.Load<GameObject>("Cell"), Content);
......@@ -92,16 +90,16 @@ public class LeeMainController : MonoBehaviour
{
Transform Content = ZhongCaiTiXian.Find("MainBK/SV/Viewport/Content");
List<Transform> ChildList = new List<Transform>();
for (int i = 0; i < Content.childCount; i++)
{
ChildList.Add(Content.GetChild(i));
}
//List<Transform> ChildList = new List<Transform>();
//for (int i = 0; i < Content.childCount; i++)
//{
// ChildList.Add(Content.GetChild(i));
//}
for (int i = 0; i < ChildList.Count; i++)
{
Destroy(ChildList[i].gameObject);
}
//for (int i = 0; i < ChildList.Count; i++)
//{
// Destroy(ChildList[i].gameObject);
//}
ZhongCaiTiXian.gameObject.SetActive(false);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment