Beispiel #1
0
    private void HandleCardToUseChange(Card cardToUse)
    {
        if (cardToUse == null)
        {
            selectedUICard.ToggleSelection();
            selectedUICard = null;
        }
        else
        {
            if (selectedUICard)
            {
                selectedUICard.ToggleSelection();
            }

            selectedUICard = uiCards[cardToUse];
            selectedUICard.ToggleSelection();
        }
    }