/// <summary> /// 构造函数 /// </summary> public Character(string job, int totalhp, Transform position, Transform target, float direction, CharacterConsts.Belong belong, int damage) { this.job = job; this.totalhp = totalhp; this.position = position; this.target = target; this.direction = direction; this.belong = belong; this.damage = damage; }
/// <summary> /// 构造函数 /// </summary> public Ally(string job, int totalhp, Transform position, Transform target, float direction, CharacterConsts.Belong belong, int damage, int skill, int cost, int mp, int totalmp) : base(job, totalhp, position, target, direction, belong, damage) { this.job = job; this.totalhp = totalhp; this.position = position; this.target = target; this.direction = direction; this.cost = cost; this.mp = mp; this.skill = skill; this.totalmp = totalmp; this.damage = damage; }
/// <summary> /// 构造函数 /// </summary> public Enemy(string job, int totalhp, Transform position, Transform target, float direction, CharacterConsts.Belong belong, int damage, float speed, float power, int golddrop) : base(job, totalhp, position, target, direction, belong, damage) { this.job = job; this.totalhp = totalhp; this.position = position; this.target = target; this.direction = direction; this.speed = speed; this.power = power; this.golddrop = golddrop; this.damage = damage; }