Ejemplo n.º 1
0
    public void OnDoSearch()
    {
        Debug.Log("search: " + searchText.text);

        string searchTerm = searchText.text.ToLower();

        // FIlter function
        System.Func <Place, bool> filter = p =>
        {
            return(p.Name.ToLower().Contains(searchTerm));
        };

        StartCoroutine(scrollList.ApplyFilter(filter));
    }