private void OnHitReceived(BaseUnit unit, HitInfo hitInfo) { if (unit == _unitData) { _model.PlayHitAnimation(unit.HealthPoints, hitInfo); _ui.ApplyDamage(unit.HealthPoints, hitInfo); } }
private void OnHitReceived(BaseUnit unit, HitInfo hitInfo) { if (unit == _unitData) { _model.PlayHitAnimation(unit.HealthPoints, hitInfo); _ui.ApplyDamage(unit.HealthPoints, hitInfo); } }