Ejemplo n.º 1
0
 protected LivingEntity(UnitParameters up)
 {
     _up = up;
     Hp  = up.Health;
     _up.OnValueChanged += newUp => UpdateParams();
 }
Ejemplo n.º 2
0
        protected AttackingEntity(EntitiesController <TTargetType> targetsController,
                                  EntitiesController <TEntityType> entitiesController, UnitParameters up) : base(up)
        {
            TargetsController = targetsController;
            Controller        = entitiesController;

            _bulletsCount = _up.ClipSize;
        }