Exemplo n.º 1
0
    void SingleSelectCard(CardSelectorButton selected)
    {
        buttons_selected = new List <int>()
        {
            positions.IndexOf(selected)
        };

        FinishSelecting();
    }
Exemplo n.º 2
0
    void MultiSelectCard(CardSelectorButton selected)
    {
        int position = positions.IndexOf(selected);

        if (buttons_selected.Contains(position))
        {
            buttons_selected.Remove(position);
        }
        else
        {
            buttons_selected.Add(position);
        }
    }