示例#1
0
 protected override void OnPrevious()
 {
     CharacterSelectionHelper.SelectionData slot = selectionHelper.SelectionMap[Current];
     if (!slot.selected || slot.selectedBySlot != menuManager.PlayerSlot)
     {
         base.OnPrevious();
     }
 }
示例#2
0
    /// <summary>
    /// Deselects if possible.
    /// </summary>
    public bool Deselect()
    {
        CharacterSelectionHelper.SelectionData slot = selectionHelper.SelectionMap[Current];

        // Only deselect if the current index is selected
        if (slot.selected)
        {
            HandleCharacterSelected(Current);
            selectionHelper.DeselectAt(Current, menuManager.PlayerSlot);
            return(true);
        }
        return(false);   // Nothing was selected
    }