Пример #1
0
        /// <summary>
        /// Changes the current dir to the given dir.
        /// </summary>
        public static void ChangeDir(HashDir dir)
        {
            var data = DataHolder.DeviceData.CurrentDevice.FileSystem;

            data.CurrentDir = dir;

            TerminalUtil.UpdateCurrentPathLabel();
            TerminalUtil.UpdateCommandBuffer();
        }
Пример #2
0
        public void OnInputChanged()
        {
            var text = DataHolder.GUIReferences.Input.value;

            if (string.IsNullOrEmpty(text))
            {
                TerminalUtil.ChangeToCommandCacheBuffer();
            }
            else if (text.Contains("\n"))
            {
                StartCoroutine(TerminalUtil.HandlePlayerInput(text));
            }
            else
            {
                TerminalUtil.UpdateCommandBuffer();
            }
        }