Exemple #1
0
        public void LoadSpellCard(GuillaumeSpellCard sc)
        {
            Debug.Log("Play Spell");

            if (sc == null)
            {
                return;
            }

            spellCard = sc;

            title.text  = sc.cardName;
            detail.text = sc.cardDetail;
            type.text   = sc.cardtype;
            art.sprite  = sc.art;
            cost.text   = sc.cardManaCost.ToString();

            if (string.IsNullOrEmpty(sc.cardAttack.ToString()))
            {
                attack.gameObject.SetActive(false);
            }

            if (string.IsNullOrEmpty(sc.cardHealth.ToString()))
            {
                health.gameObject.SetActive(false);
            }
        }
        public void LoadSpellCard(GuillaumeSpellCard sc)
        {
            if (sc == null)
            {
                return;
            }

            spellCard = sc;

            title.text  = sc.cardName;
            detail.text = sc.cardDetail;
            type.text   = sc.cardtype;
            art.sprite  = sc.art;
            cost.text   = sc.cardManaCost.ToString();
        }