Example #1
0
    public void LoadSuggestions()
    {
        if (minCharBeforeSuggestions != 0 && devConsoleInput.text.Length < minCharBeforeSuggestions)
        {
            suggestionItems = new List <DevConsole.DevConsoleItem>();
        }
        else
        {
            suggestionItems = DevConsole.GetSuggestionItems(devConsoleInput.text);
        }

        for (int i = 0; i < suggestions.Length; i++)
        {
            if (i < suggestionItems.Count)
            {
                suggestions[i].ShowSuggestion(suggestionItems[i]);
            }
            else
            {
                suggestions[i].ShowSuggestion(null);
            }
        }
    }