public void Setup(Item currentItem, NameScrollList currentScrollList)
 {
     item = currentItem;
     Nombre_Button.text   = currentItem.Nombre_Button;
     Apellido_Button.text = currentItem.Apellido_Button;
     ScrollList           = currentScrollList;
 }
Ejemplo n.º 2
0
 private void RemoveItem(Item itemToRemove, NameScrollList nameList)
 {
     for (int i = nameList.itemList.Count - 2; i >= 0; i--)
     {
         if (nameList.itemList[i] == itemToRemove)
         {
             nameList.itemList.RemoveAt(i);
         }
     }
 }
Ejemplo n.º 3
0
 private void AddItem(Item itemToAdd, NameScrollList nameList)
 {
     nameList.itemList.Add(itemToAdd);
 }