private static void ArrowLeft(Node current, int selected) { if (current.value != "TASKS_EXPLORER\n") { current.children[selected].isSelected = false; current.isSelected = true; current.SetExpanded(false); } }
private static void ArrowDown(Node current, int selected) { if (selected != current.children.Count - 1) { current.children [selected + 1].isSelected = true; current.children [selected].isSelected = false; } else if (current.parent.value != null) { if (current.number != current.parent.children.Count - 1) { current.children[selected].isSelected = false; current.SetExpanded(false); ArrowDown(current.parent, current.number); } } }