private static void _SetSelection(Selectable selectable, Selectable target, SelectableDirection direction) { selectable.navigation = selectable.SetSelection(target, direction); }
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); }