From 94a0a051cd6eebe8f780ae572519ffea52c4bac8 Mon Sep 17 00:00:00 2001 From: yulong <1838206582@qq.com> Date: Wed, 27 Mar 2024 18:43:40 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/Temp/Scripts/Spectrumdetection.cs | 2 +- Assets/Zion/Scripts/Adam/Components/SimpleCameraController.cs | 2 +- .../Scripts/ModelFunction/UAV/UnmannedAerialVehicleManage.cs | 4 ++-- Assets/Zion/Scripts/WRJ0125/RadioAngleView.cs | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Assets/Temp/Scripts/Spectrumdetection.cs b/Assets/Temp/Scripts/Spectrumdetection.cs index 609f9702..7e8773d6 100644 --- a/Assets/Temp/Scripts/Spectrumdetection.cs +++ b/Assets/Temp/Scripts/Spectrumdetection.cs @@ -170,7 +170,7 @@ public class Spectrumdetection : MonoBehaviour if (obj.GetComponent() && Frequency.Contains(obj.GetComponent().dataLinkCommunicationFrequency)) { - Debug.LogError("频谱找到了"); + return true; } else diff --git a/Assets/Zion/Scripts/Adam/Components/SimpleCameraController.cs b/Assets/Zion/Scripts/Adam/Components/SimpleCameraController.cs index b11797f1..6cb15054 100644 --- a/Assets/Zion/Scripts/Adam/Components/SimpleCameraController.cs +++ b/Assets/Zion/Scripts/Adam/Components/SimpleCameraController.cs @@ -170,7 +170,7 @@ namespace UnityTemplateProjects } // Modify movement by a boost factor (defined in Inspector and modified in play mode through the mouse scroll wheel) - boost += Input.mouseScrollDelta.y * 0.2f; + //boost += Input.mouseScrollDelta.y * 0.2f; translation *= Mathf.Pow(2.0f, boost); #elif USE_INPUT_SYSTEM diff --git a/Assets/Zion/Scripts/ModelFunction/UAV/UnmannedAerialVehicleManage.cs b/Assets/Zion/Scripts/ModelFunction/UAV/UnmannedAerialVehicleManage.cs index 34893feb..935919ab 100644 --- a/Assets/Zion/Scripts/ModelFunction/UAV/UnmannedAerialVehicleManage.cs +++ b/Assets/Zion/Scripts/ModelFunction/UAV/UnmannedAerialVehicleManage.cs @@ -503,7 +503,7 @@ public class UnmannedAerialVehicleManage : MonoBehaviour if (wrjModel == WRJModel.电子侦察无人机) { - List allColliders = Physics.OverlapSphere(transform.position, Spectrumdetection.Radius * 1000).ToList(); // 检索范围内的所有碰撞体 + List allColliders = Physics.OverlapSphere(transform.position,500).ToList(); // 检索范围内的所有碰撞体 for (int i = 0; i < allColliders.Count; i++) { @@ -512,7 +512,7 @@ public class UnmannedAerialVehicleManage : MonoBehaviour } else if (wrjModel == WRJModel.光学无人机) { - List allColliders = Physics.OverlapSphere(transform.position, Spectrumdetection.Radius * 1000).ToList(); // 检索范围内的所有碰撞体 + List allColliders = Physics.OverlapSphere(transform.position,500).ToList(); // 检索范围内的所有碰撞体 for (int i = 0; i < allColliders.Count; i++) { if (allColliders[i].gameObject.tag == "AttackTarget" && !allColliders[i].isTrigger && !attackColliders1.Contains(allColliders[i])) diff --git a/Assets/Zion/Scripts/WRJ0125/RadioAngleView.cs b/Assets/Zion/Scripts/WRJ0125/RadioAngleView.cs index fdacbade..45fd0c09 100644 --- a/Assets/Zion/Scripts/WRJ0125/RadioAngleView.cs +++ b/Assets/Zion/Scripts/WRJ0125/RadioAngleView.cs @@ -53,7 +53,7 @@ public class RadioAngleView : MonoBehaviour btnClose.onClick.AddListener(() => { transform.localScale = Vector3.zero; - transform.SetAsLastSibling();// 移到父物体的最后一个位置 + transform.SetAsLastSibling();//移到父物体的最后一个位置 }); } private void Update()