private void OnCollisionEnter(Collision collision) { if (isDead) { return; } float rawMagnitude = collision.relativeVelocity.magnitude; if (rawMagnitude < characterStatus.GetMagnitudeTolerance()) { return; } else { characterStatus.TakeDamage(rawMagnitude); } }