diff --git a/Assets/Temp/Scripts/Spectrumdetection.cs b/Assets/Temp/Scripts/Spectrumdetection.cs index e8b9a348..8acc9b69 100644 --- a/Assets/Temp/Scripts/Spectrumdetection.cs +++ b/Assets/Temp/Scripts/Spectrumdetection.cs @@ -127,6 +127,11 @@ public class Spectrumdetection : MonoBehaviour Camera1.gameObject.SetActive(true); Search();//微波武器朝向无人机 } + if (onlyOne && equipmentCommon.deviceID.Length > 10) + { + onlyOne = false; + DroneViewDisplay.Instance.CreateUI(equipmentCommon.deviceID, Camera1, rawImage); + } } private void Microwave() { diff --git a/Assets/Zion/Scripts/ModelFunction/TerrestrialRadioInterference/TerrestrialRadioInterferenceManger.cs b/Assets/Zion/Scripts/ModelFunction/TerrestrialRadioInterference/TerrestrialRadioInterferenceManger.cs index 8f3101de..b19fa805 100644 --- a/Assets/Zion/Scripts/ModelFunction/TerrestrialRadioInterference/TerrestrialRadioInterferenceManger.cs +++ b/Assets/Zion/Scripts/ModelFunction/TerrestrialRadioInterference/TerrestrialRadioInterferenceManger.cs @@ -128,6 +128,10 @@ public class TerrestrialRadioInterferenceManger : MonoBehaviour /// 接收接口的频段 /// public string InterferingFrequency1; + /// + /// + /// + private bool onlyOne = true; void Awake() { terrestrialRadioInterferenceMangers.Add(this); @@ -192,6 +196,7 @@ public class TerrestrialRadioInterferenceManger : MonoBehaviour Transform wrj = WRJs.Dequeue(); Interferencemode(wrj); } + //Interferencemode(); //Angularrange(); }