onReceiveDamage method

void onReceiveDamage(
  1. AttackOriginEnum attacker,
  2. double damage,
  3. dynamic identify
)

Implementation

void onReceiveDamage(
  AttackOriginEnum attacker,
  double damage,
  dynamic identify,
) {
  removeLife(damage);
}