Example #1
0
    void Start()
    {
        _history      = FindObjectOfType <TerminalHistory>();
        _input        = FindObjectOfType <TerminalInput>();
        _inputManager = FindObjectOfType <TerminalInputManager>();

        _hasInitialized = false;
    }
Example #2
0
        void Start()
        {
            _inputManager    = FindObjectOfType <TerminalInputManager>();
            _terminalHistory = FindObjectOfType <TerminalHistory>();

            _availableCommandList = new Dictionary <string, string>();

            var commands = TerminalUtil.GetAvailableCommandList();

            if (commands == null || !commands.commands.Any())
            {
                return;
            }

            foreach (var command in commands.commands)
            {
                if (_availableCommandList.ContainsKey(command.key))
                {
                    continue;
                }

                _availableCommandList.Add(command.key, command.summary);
            }
        }
 public void AssignTerminalInputManager(TerminalInputManager tim)
 {
     _terminalInputManager = tim;
 }