Exemple #1
0
 private static void _SetSelection(Selectable selectable, Selectable target, SelectableDirection direction)
 {
     selectable.navigation = selectable.SetSelection(target, direction);
 }
Exemple #2
0
 public static bool TrySetNavigation(this List <LevelUI> levelUIs, int currentIndex, int indexInQuestion, SelectableDirection direction)
 {
     if (levelUIs.IsValidLevelUIIndex(currentIndex) && levelUIs.IsValidLevelUIIndex(indexInQuestion))
     {
         _SetSelection(levelUIs[currentIndex].selectable, levelUIs[indexInQuestion].selectable, direction);
         return(true);
     }
     return(false);
 }