using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.UI; public class Card { public int id; public string CardName; public Card(int _id, string _CardName) { this.id = _id; this.CardName = _CardName; } } public class MonsterCard: Card { public int attack; public int healthPoint; public int healthPointMax; public int attackTime; //等级,属性等 public MonsterCard(int _id, string _CardName, int attack,int healthPointMax):base(_id, _CardName) { this.attack = attack; this.healthPoint = healthPointMax; this.healthPointMax = healthPointMax; attackTime = 1; } } public class SpellCard: Card { public string effect; public int effectvalue; public SpellCard(int _id, string _CardName, string effect, int effectvalue):base(_id, _CardName) { this.effect = effect; this.effectvalue = effectvalue; } }