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(); } }