void Start() { if (ConsoleFont == null) { ConsoleFont = Font.CreateDynamicFontFromOSFont("Courier New", 16); Debug.LogWarning("Command Console Warning: Please assign a font."); } command_text = ""; cached_command_text = command_text; Assert.AreNotEqual(ToggleHotkey.ToLower(), "return", "Return is not a valid ToggleHotkey"); SetupWindow(); SetupInput(); SetupLabels(); //Shell.RegisterCommands(); if (IssuedError) { Log(TerminalLogType.Error, "Error: {0}", Shell.IssuedErrorMessage); } foreach (var command in Shell.Commands) { Autocomplete.Register(command.Key); } }
public void Awake() { Buffer = new CommandLog(BufferSize); Shell = new CommandShell(); History = new CommandHistory(); Autocomplete = new CommandAutocomplete(); command_text = ""; Shell.RegisterCommands(); if (IssuedError) { Log(TerminalLogType.Error, "Error: {0}", Shell.IssuedErrorMessage); } foreach (var command in Shell.Commands) { Autocomplete.Register(command.Key); } }