This commit is contained in:
yulong 2024-03-27 18:43:40 +08:00
parent eb2cd6966b
commit 94a0a051cd
4 changed files with 5 additions and 5 deletions

View File

@ -170,7 +170,7 @@ public class Spectrumdetection : MonoBehaviour
if (obj.GetComponent<UnmannedAerialVehicleManage>()
&& Frequency.Contains(obj.GetComponent<UnmannedAerialVehicleManage>().dataLinkCommunicationFrequency))
{
Debug.LogError("频谱找到了");
return true;
}
else

View File

@ -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

View File

@ -503,7 +503,7 @@ public class UnmannedAerialVehicleManage : MonoBehaviour
if (wrjModel == WRJModel.)
{
List<Collider> allColliders = Physics.OverlapSphere(transform.position, Spectrumdetection.Radius * 1000).ToList(); // 检索范围内的所有碰撞体
List<Collider> 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<Collider> allColliders = Physics.OverlapSphere(transform.position, Spectrumdetection.Radius * 1000).ToList(); // 检索范围内的所有碰撞体
List<Collider> 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]))

View File

@ -53,7 +53,7 @@ public class RadioAngleView : MonoBehaviour
btnClose.onClick.AddListener(() =>
{
transform.localScale = Vector3.zero;
transform.SetAsLastSibling();// 移到父物体的最后一个位置
transform.SetAsLastSibling();//移到父物体的最后一个位置
});
}
private void Update()