public void FilterDestinations() { if (GetComponentInChildren <Text>().text == "Clear filter") { navigationMenu.ClearFilter(); } else { navigationMenu.FilterDestinations(GetComponentInChildren <Text>().text); } }