Exemple #1
0
    public void MoveRight()
    {
        MenuSelectable nextItem = currentMenuItem.selectOnRight;

        if (nextItem != null)
        {
            MoveToItem(nextItem);
        }
    }
Exemple #2
0
    public void MoveDown()
    {
        MenuSelectable nextItem = currentMenuItem.selectOnDown;

        if (nextItem != null)
        {
            MoveToItem(nextItem);
        }
    }
Exemple #3
0
    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);
    }
Exemple #4
0
 static void Modules(MenuSelectable _) => UIManager.instance.UIGoToDynamicMenu(_ModuleToggleScreen);
Exemple #5
0
 private void MoveToItem(MenuSelectable nextItem)
 {
     transform.position = nextItem.transform.position + cursorOffset;
     currentMenuItem    = nextItem;
 }