public void MoveRight() { MenuSelectable nextItem = currentMenuItem.selectOnRight; if (nextItem != null) { MoveToItem(nextItem); } }
public void MoveDown() { MenuSelectable nextItem = currentMenuItem.selectOnDown; if (nextItem != null) { MoveToItem(nextItem); } }
public void SelectMenuItem(PLEMenuType menu) { SFXManager.Instance.Play(SFXType.UI_Click); MenuSelectable selectedMenuItem = menuToggles.Find(menuToggle => menuToggle.menu == menu); Selectable selectedSelectable = selectedMenuItem.selectable; if (menu != currentDisplayedMenu) { selectedSelectable.Select(); SwitchToMenu(menu); } CurrentEventSystem.SetSelectedGameObject(selectedSelectable.gameObject); }
static void Modules(MenuSelectable _) => UIManager.instance.UIGoToDynamicMenu(_ModuleToggleScreen);
private void MoveToItem(MenuSelectable nextItem) { transform.position = nextItem.transform.position + cursorOffset; currentMenuItem = nextItem; }