public void RemoveSelected(GameObject row) { if (row) { CustomTuple temp = refData.PopFromRefList(row.name); GetComponent <ReferenceCalculator>().ClearLine(temp.GetFirst(), temp.GetSecond()); GetComponent <ReferenceCalculator>().ClearCalculationsText(temp.GetFirst(), temp.GetSecond()); ViewAllPanel.GetComponent <PopulateAirRef>().Populate(); } }