public void RemoveSelectedButton() { if (selectedButton != null) { listManager.RevomeItemFromList(selectedButton.GetComponent <ItemButtonScript>().item); listManager.RemoveButton(selectedButton); listManager.sortManager.SortAndFilterList(); selectedButton = null; } }