Exemplo n.º 1
0
 // Start is called before the first frame update
 void Start()
 {
     m_tableView.dataSource = this;
     datas = new ArrayList();
     for (int i = 0; i < 100; i++)
     {
         MyCellInfo info = new MyCellInfo
         {
             index  = i,
             height = 100,
             name   = "name: " + i
         };
         datas.Add(info);
     }
 }
Exemplo n.º 2
0
 void CellCallback(MyTableViewCell cell, MyCellInfo info)
 {
     m_tableView.NotifyCellDimensionsChanged(info.index);
 }
Exemplo n.º 3
0
 public void updateInfo(MyCellInfo model)
 {
     info         = model;
     slider.value = model.height;
 }