Пример #1
0
 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);
 }
Пример #2
0
 public void CreateUnitView()
 {
     _unitView = new UnitView(_name);
 }