private void OnTextEdit(string text) { LocationDatabase.Search(text); bool hasText = !string.IsNullOrEmpty(text); if (clearButton != null) { clearButton.gameObject.SetActive(hasText); } if (searchIcon != null) { searchIcon.gameObject.SetActive(!hasText); } }
private void OnSearch(string text) { LocationDatabase.Search(text); }