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();
        }
    }
예제 #2
0
    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();
        }
    }
예제 #3
0
    public void Init(ICard card)
    {
        SelfCard    = card;
        GameManager = GameManagerScript.Instance;

        CurrentHealth = card.Health;

        CardInfo.ShowCardInfo();
    }