Пример #1
0
 /// <summary>
 /// Helper method that knocks back the target
 /// </summary>
 /// <param name="attacker">Target object</param>
 /// <param name="knockbackDirX">X Knockback direction</param>
 /// <param name="knockbackDirY">Y Knockback direction</param>
 private void ProcessKnockbackOnDamage(IDamagable target, int knockbackDirX, int knockbackDirY)
 {
     target.KnockbackOnDamage(target.knockbackGiven, knockbackDirX, knockbackDirY);
 }