Exemple #1
0
    public void Setup(ScrollViewItem currentItem, ScrollViewList currentScrollList)
    {
        item       = currentItem;
        scrollList = currentScrollList;

        m_uid       = item.uid;
        m_text.text = item.name;
    }
Exemple #2
0
 private void RemoveItem(ScrollViewItem itemToRemove, ScrollViewList scrollList)
 {
     for (int i = scrollList.itemList.Count - 1; i >= 0; i--)
     {
         if (scrollList.itemList[i] == itemToRemove)
         {
             scrollList.itemList.RemoveAt(i);
         }
     }
 }
Exemple #3
0
 void AddItem(ScrollViewItem itemToAdd, ScrollViewList scrollList)
 {
     scrollList.itemList.Add(itemToAdd);
 }