public void OnClickSearchGroup() { if (!isCouldClick()) { return; } if (LegionEvent.SearchLegion != null && searchInput != null && !searchInput.value.Equals(searchNormalStr)) { searchNormalStr = searchInput.value; LegionEvent.SearchLegion(searchInput.value); } else if (searchInput.value.Equals(searchNormalStr)) { searchNormalStr = ""; LegionEvent.SearchLegion(""); } }