private void Awake() { developerConsole = new DeveloperConsole(prefix, ref commands); developerConsole.SubscribeToPrefixUpdate(UpdateStringPrefixExternally); developerConsole.SubscribeToCommandUpdate(UpdateCommandListExternally); }
private void OnConsoleAttached(DeveloperConsole.DeveloperConsole dc) { //Initialize console stuff here _developerConsole = dc; //Register commands dc.CommandDispatcher.RegisterCommand( new CommandDispatcher.Command("ping", "Prints 'pong!' in the console", ExampleCommandEventHandler), true); //Register Tick/KeyUp/KeyDown events after we have access to the console Tick += OnTick; }
private void OnConsoleAttached(DeveloperConsole.DeveloperConsole dc) { //Initialize console stuff here _developerConsole = dc; //Register commands dc.CommandDispatcher.RegisterCommand( new CommandDispatcher.Command("ping", "Prints 'pong!' in the console", ExampleCommandEventHandler), true); //Register Tick/KeyUp/KeyDown events after we have access to the console Tick += OnTick; }
private void OnConsoleAttached(DeveloperConsole dc) { Tick += OnTick; _player = Game.Player; _developerConsole = dc; _commandDispatcher = dc.CommandDispatcher; RegisterDefaultCommands(); dc.PrintDebug("DefaultCommands loaded successfully."); }
private void OnConsoleAttached(DeveloperConsole dc) { Tick += OnTick; _player = Game.Player; _developerConsole = dc; _commandDispatcher = dc.CommandDispatcher; RegisterDefaultCommands(); dc.PrintDebug("DefaultCommands loaded successfully."); }