void BoresightScan() { if (locked) { boresightScan = false; return; } currentAngle = Mathf.Lerp(currentAngle, 0, 0.08f); RadarUtils.RadarUpdateScanBoresight(new Ray(transform.position, transform.up), boresightFOV, ref attemptedLocks, Time.fixedDeltaTime, this); for (int i = 0; i < attemptedLocks.Length; i++) { if (!attemptedLocks[i].exists || !(attemptedLocks[i].age < 0.1f)) { continue; } TryLockTarget(attemptedLocks[i].predictedPosition); boresightScan = false; return; } }