public override void AddDamage(CauseOfDeath causeOfDeath, float amount, IDamageable attacker) { base.AddDamage(causeOfDeath, amount, attacker); if (attacker != null) { aiController.OnAttacked(attacker, amount); } }
public override void AddDamage(CauseOfDeath causeOfDeath, float amount, Character attacker, string identifier = "") { base.AddDamage(causeOfDeath, amount, attacker, identifier); if (attacker != null) { aiController.OnAttacked(attacker, amount); } }