Esempio n. 1
0
 private void ResetSelectedButton()
 {
     if (selectedButton != null)
     {
         listManager.RemoveButton(selectedButton);
         selectedButton = null;
     }
 }
 public void RemoveSelectedButton()
 {
     if (selectedButton != null)
     {
         listManager.RevomeItemFromList(selectedButton.GetComponent <ItemButtonScript>().item);
         listManager.RemoveButton(selectedButton);
         listManager.sortManager.SortAndFilterList();
         selectedButton = null;
     }
 }
Esempio n. 3
0
 public void RemoveListButtons()
 {
     listManager.currentItemList.Clear();
     if (listManager.currentButtonList.Count > 0)
     {
         for (int i = listManager.currentButtonList.Count - 1; i >= 0; i--)//removes all buttons
         {
             listManager.RemoveButton(listManager.currentButtonList[i]);
         }
     }
 }