public Unit(UnitDataSet dataSet) { _name = dataSet.Name; _unitView = dataSet.UnitView; _anchor = dataSet.Anchor; _radius = dataSet.Radius; _hitpoint = new NumberSink(dataSet.HitPoint); _moveSpeed = dataSet.MoveSpeed; _commands = dataSet.Commands; _weapon = new Weapon(dataSet.Weapon); }
public void CreateUnitView() { _unitView = new UnitView(_name); }