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