private void OnSuggestionPicked(GameConsoleInvokable command) { if (!_inputField.text.Contains(" ")) { _inputField.text = command.DisplayName + " "; _inputField.caretPosition = _inputField.text.Length; } }
public bool ConflictsWith(GameConsoleInvokable other) { // For now, identical name => conflict! // If needed, we could develop a more complex analysis and allow for same-name methods but with different parameters if (string.Compare(other.Name, Name, ignoreCase: true) == 0) return true; return false; //int maxManadatoryParamCount = Mathf.Max(MandatoryParameterCount, other.MandatoryParameterCount); //for (int i = 0; i < maxManadatoryParamCount; i++) //{ // if(i >= Parameters.Length) // { // return false; // } // if(i >= other.Parameters.Length) // { // return false; // } // if(Parameters[i].Type !=) //} }