public override void SetDamage(Damage damage) { if (damage.Knockout) { isKnockOut = true; timeKnockout = 0; _knockoutActor.KnockOut(DieDistancePower, MaxDieDistanceX); } base.SetDamage(damage); }
public override void SetDamage(Damage damage) { if (_knockoutActor.DoKnockOut) { return; } base.SetDamage(damage); if (damage.Knockout) { isKnockOut = true; Stunned = false; timeKnockout = 0; _knockoutActor.KnockOut(DieDistancePower, MaxDieDistanceX); } }