Assets.Scripts.Console.ConsoleViewPC.HandleArrowSelection C# (CSharp) Méthode

HandleArrowSelection() private méthode

private HandleArrowSelection ( ) : void
Résultat void
        private void HandleArrowSelection()
        {
            if (KeyDown(KeyCode.UpArrow))
            {
                if (Event.current.control || Event.current.command)
                {
                    HandleLogSelection(CommandLogger.previousCommand, !Event.current.shift);
                }
                else
                {
                    (CandinateContext.TopState() as CandinatesState).TryMoveSelection(-1);
                }
            }
            else if (KeyDown(KeyCode.DownArrow))
            {
                if (Event.current.control || Event.current.command)
                {
                    HandleLogSelection(CommandLogger.nextCommand, !Event.current.shift);
                }
                else
                {
                    (CandinateContext.TopState() as CandinatesState).TryMoveSelection(1);
                }
            }
        }