Beispiel #1
0
    public void Distribute()
    {
        table.Distribute();
        prototypeCard.id           = (int)table.okey.id;
        prototypeCard.color.color  = colors[(int)table.okey.Color];
        prototypeCard.number.color = colors[(int)table.okey.Color];
        prototypeCard.number.text  = table.okey.Number.ToString();

        table.cards.ForEach((card) => {
            DraggableCard obj = cardPooling[(int)card.id];
            if (!obj.gameObject.activeInHierarchy)
            {
                return;
            }
            if (card.SameWith(table.okey))
            {
                obj.ShowFront();
            }
            else
            {
                obj.ShowBack();
            }
        });
    }