This commit is contained in:
yulong 2024-01-30 19:33:37 +08:00
parent b266249130
commit b679f840b2
1 changed files with 3 additions and 2 deletions

View File

@ -131,7 +131,7 @@ public class Spectrumdetection : MonoBehaviour
{ {
if (ison) if (ison)
{ {
Frequency = "HUF"; Frequency = "UHF";
camera.cullingMask = 1 << 16; camera.cullingMask = 1 << 16;
SweepFrequencyBandTo(); SweepFrequencyBandTo();
} }
@ -366,7 +366,8 @@ public class Spectrumdetection : MonoBehaviour
/// </summary> /// </summary>
private void Search() 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++) for (int i = 0; i < colliders.Length; i++)
{ {
if (colliders[i].transform.gameObject.tag == "WRJ") if (colliders[i].transform.gameObject.tag == "WRJ")