TeaseAI_CE.Scripting.Controller.Input C# (CSharp) Method

Input() public method

public Input ( Personality p, string text ) : void
p Personality
text string
return void
		public void Input(Personality p, string text)
		{
			var shorthand = VM.InputToShorthand(text);

			// ToDo 8: If Debugging
			//OnOutput?.Invoke(p, shorthand);
			// else
			OnOutput?.Invoke(p, text);

			var script = VM.GetScriptResponse(shorthand);
			if (script != null)
				Add(script);
		}