You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

49 lines
988 B

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