Exemple #1
0
    public void AddAllCards()
    {
        HeroCard card     = AddCard();
        Vector2  cardSize = card.GetCardSize();

        int num = Mathf.CeilToInt(panel_ScrollView.GetViewSize().x / cardSize.x);

        card_num = num + 1;

        for (int i = 0; i < num; i++)
        {
            AddCard();
        }
    }