Пример #1
0
        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;
        }
Пример #2
0
        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);
        }
Пример #3
0
 public override void OnSetType(CardViz viz)
 {
     viz.statsHolder.SetActive(false);
 }
Пример #4
0
        //public bool canAttack;

        public abstract void OnSetType(CardViz viz);