private void Update() { if (_startScanningKey.GetDown()) { StartScanning(); } if (_stopScanningKey.GetDown()) { FinishScanning(); } }