예제 #1
0
    void showInitCards()
    {
        Transform trans;
        int       len;

        for (var i = 0; i < IROWCOUNT; i++)
        {
            trans = getTransP(0, i).transform;
            len   = trans.childCount - 1;
            for (var j = len; j >= 0; j--)
            {
                CardSpider card = trans.GetChild(j).GetComponent <CardSpider>();
                if (j == len)
                {
                    card.setBMove(true);
                }
                else
                {
                    card.showBg(true);
                }
            }
        }
    }