Пример #1
0
 public void OnCommandEntered()
 {
     using (_parser)
         if (inputField.text != "`")
         {
             try
             {
                 _parser.Build(inputField.text).Invoke();
             }
             catch (ArgumentException e)
             {
                 Debug.Log(e.Message);
             }
             finally
             {
                 inputField.text = "";
                 inputField.ActivateInputField();
             }
         }
 }