private void DoCommandSuggestions() { // TODO - null ptr checks for suggestion text box Dictionary <string, CommandWrapper> suggestions = CommandRegistry.GetCommandsLike(UserInputTerms[0]); if (suggestions == null || suggestions.Count == 0) { SuggestionText.text = "No Matching Commands!"; return; } foreach (CommandDef commandDef in suggestions) { Suggestions.Add(commandDef.Name); SuggestionText.text += commandDef.GetCommandFormat() + "\n"; } }