public Enemy(string name) { EnemyList EnemyList = new EnemyList(); Name = name; Enemy enemy = EnemyList.DefaultEnemyList.Find(x => x.Name == name); Id = enemy.Id; Hp = enemy.Hp; Damage = enemy.Damage; }
public Enemy(int id) { EnemyList EnemyList = new EnemyList(); Id = id; Enemy enemy = EnemyList.DefaultEnemyList.Find(x => x.Id == id); Name = enemy.Name; Hp = enemy.Hp; Damage = enemy.Damage; }