Beispiel #1
0
        public void ExecuteCommand(string name)
        {
            CommandResponse response = console.ExecuteCommand(name);

            if (response.IsCode("error"))
            {
                messageContainer.Add($"<color=red>{response.message}</color>");
            }
            if (response.IsCode("ok"))
            {
                messageContainer.Add($"<color=gray>{response.message}</color>");
            }
            field.text = "";
        }