예제 #1
0
    public void Setup(MenuItem currentItem, TryoutsScrollList currentScrollList)
    {
        this.item             = currentItem;
        this.nameLabel.text   = this.item.Name;
        this.iconImage.sprite = this.item.Icon;

        this.scrollList = currentScrollList;
    }
예제 #2
0
 private void RemoveItem(MenuItem itemToRemove, TryoutsScrollList scrollList)
 {
     for (int i = scrollList.itemList.Count - 1; i >= 0; i--)
     {
         if (scrollList.itemList.ElementAt(i) == itemToRemove)
         {
             scrollList.itemList.Remove(itemToRemove);
         }
     }
 }
예제 #3
0
 private void AddItem(MenuItem itemToAdd, TryoutsScrollList scrollList)
 {
     scrollList.itemList.Add(itemToAdd);
 }