예제 #1
0
 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);
     }
 }
예제 #2
0
 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);
         }
     }
 }