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);
            }
        }
Ejemplo n.º 2
0
 private void OnSearch(string text)
 {
     LocationDatabase.Search(text);
 }