예제 #1
0
 public bool IsSelected(Selectable selectable) {
   for (int i = 0; i < selected.Count; i++) {
     if (selectable == selected[i]) {
       return true;
     }
   }
   return false;
 }
예제 #2
0
 public void RemoveSelected(Selectable newSelected) {
   selected.Remove(newSelected);
   newSelected.SetSelectionStatus(false);
 }
예제 #3
0
 public void AddToSelected(Selectable newSelected) {
   if (!IsSelected(newSelected) && newSelected.IsSelectable) {
     selected.Add(newSelected);
     newSelected.SetSelectionStatus(true);
   }
 }
예제 #4
0
 public void SetSelected(Selectable newSelected) {
   if (newSelected.IsSelectable) {
     ClearSelection();
     AddToSelected(newSelected);
   }
 }
예제 #5
0
 public void RemoveSelected(Selectable newSelected)
 {
     selected.Remove(newSelected);
     newSelected.SetSelectionStatus(false);
 }