From b679f840b24f68b0641e294e1b82cca0724c0802 Mon Sep 17 00:00:00 2001 From: yulong <1838206582@qq.com> Date: Tue, 30 Jan 2024 19:33:37 +0800 Subject: [PATCH] 1 --- Assets/Temp/Scripts/Spectrumdetection.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Assets/Temp/Scripts/Spectrumdetection.cs b/Assets/Temp/Scripts/Spectrumdetection.cs index 964cb2e5..14beca3b 100644 --- a/Assets/Temp/Scripts/Spectrumdetection.cs +++ b/Assets/Temp/Scripts/Spectrumdetection.cs @@ -131,7 +131,7 @@ public class Spectrumdetection : MonoBehaviour { if (ison) { - Frequency = "HUF"; + Frequency = "UHF"; camera.cullingMask = 1 << 16; SweepFrequencyBandTo(); } @@ -366,7 +366,8 @@ public class Spectrumdetection : MonoBehaviour /// private void Search() { - Collider[] colliders = Physics.OverlapSphere(transform.position, float.Parse(Detectionrange) * 100); + attackColliders1.Clear(); + colliders = Physics.OverlapSphere(transform.position, float.Parse(Detectionrange) * 100); for (int i = 0; i < colliders.Length; i++) { if (colliders[i].transform.gameObject.tag == "WRJ")