void Start() { viz = GetComponent <CardViz>(); Card thiscard = viz.card; if (thiscard.cardType is CreatureCard) { attack = thiscard.GetProperty("Attack").intValue; health = thiscard.GetProperty("Health").intValue; elementalPower = thiscard.GetProperty("ElementalPower").intValue; } state = State.InHand; }
public void OnHighlight() { if (currentLogic == null) { return; } currentLogic.OnHighlight(this); GameManager gm = GameManager.singleton; GameObject highlightedCard = gm.highlightedCard; highlightedCard.SetActive(true); CardViz v = highlightedCard.GetComponent <CardViz>(); v.LoadCard(this.viz.card); }
public override void OnSetType(CardViz viz) { viz.statsHolder.SetActive(false); }
//public bool canAttack; public abstract void OnSetType(CardViz viz);