public void Init(Card card, bool isPlayerCard)
    {
        thisCard          = card;
        gameManager       = GameManagerScript.instance;
        this.isPlayerCard = isPlayerCard;

        if (isPlayerCard)
        {
            info.ShowCardInfo();
            GetComponent <AttackedCardScript>().enabled = false;
        }
        else
        {
            info.HideCardInfo();
        }
    }
    public void Init(Card card, bool isPlayerCard)
    {
        Card         = card;
        GameManager  = GameManagerScr.Instance;
        IsPlayerCard = isPlayerCard;
        Ability.Shield.SetActive(false);
        Ability.Provocation.SetActive(false);

        if (isPlayerCard)
        {
            Info.ShowCardInfo();
            GetComponent <AttackedCard>().enabled = false;
        }
        else
        {
            Info.HideCardInfo();
        }
    }
Beispiel #3
0
    public void Init(ICard card)
    {
        SelfCard    = card;
        GameManager = GameManagerScript.Instance;

        CurrentHealth = card.Health;

        CardInfo.ShowCardInfo();
    }