public override void Hit(IArrow arrow) { Vector3 arrowPrevPosition = arrow.GetPrevPosition(); RaycastHit critHit; Vector3 direction = arrow.GetPosition() - arrowPrevPosition; bool hasCritHit = Physics.Raycast( arrowPrevPosition, direction, out critHit, 10f, thisLayerMask ); thisShootingTarget.Hit(arrow, hasCritHit); }