Пример #1
0
 private void HitTarget()
 {
     if (victim != null)
     {
         victim.CalcDamage(damage);
     }
     Destroy(gameObject);
 }