public override void CreateCard(int id)
    {
        CardButton card = Instantiate(prefCard, container.transform).GetComponent <CardButton>();

        card.InitCard(id);
        activeCards.Add(card);
        UpdateWeather(card.cardType);
    }
Esempio n. 2
0
    public virtual void CreateCard(int id)
    {
        CardButton card = Instantiate(prefCard, container.transform).GetComponent <CardButton>();

        card.InitCard(id);
        activeCards.Add(card);
        UpdateTextDamage();
        GameManager.ins.boardManager.CalculateOvarall();
    }