protected Person(float maxHealth, float moveSpeed, float armor) { Health = new HealthCharacteristic(maxHealth, Die); MoveSpeed = new SpeedCharacteristic(moveSpeed); PersonArmor = new ArmorCharacteristic(armor); Stats.Add(Type.Health, Health); Stats.Add(Type.Speed, MoveSpeed); Stats.Add(Type.Armor, PersonArmor); }
public Breakable(float maxHealth, Transform transform) { Health = new HealthCharacteristic(maxHealth, Die); Transform = transform; }