Example #1
0
 void addItem()
 {
     foreach (GrowthFundData td in GrowthFundData.GetData().Values)
     {
         GameObject go = GameObject.Instantiate(item) as GameObject;
         go.SetActive(true);
         go.transform.parent     = grid.transform;
         go.transform.localScale = Vector3.one;
         GrowthfundCell onlinecell = go.GetComponent <GrowthfundCell>();
         onlinecell.GrowthReawData = td;
         items.Add(go);
     }
     grid.Reposition();
 }