This commit is contained in:
		
							parent
							
								
									eb2cd6966b
								
							
						
					
					
						commit
						94a0a051cd
					
				|  | @ -170,7 +170,7 @@ public class Spectrumdetection : MonoBehaviour | ||||||
|         if (obj.GetComponent<UnmannedAerialVehicleManage>() |         if (obj.GetComponent<UnmannedAerialVehicleManage>() | ||||||
|             && Frequency.Contains(obj.GetComponent<UnmannedAerialVehicleManage>().dataLinkCommunicationFrequency)) |             && Frequency.Contains(obj.GetComponent<UnmannedAerialVehicleManage>().dataLinkCommunicationFrequency)) | ||||||
|         { |         { | ||||||
|             Debug.LogError("频谱找到了"); | 
 | ||||||
|             return true; |             return true; | ||||||
|         } |         } | ||||||
|         else |         else | ||||||
|  |  | ||||||
|  | @ -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) |             // 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); |             translation *= Mathf.Pow(2.0f, boost); | ||||||
| 
 | 
 | ||||||
| #elif USE_INPUT_SYSTEM  | #elif USE_INPUT_SYSTEM  | ||||||
|  |  | ||||||
|  | @ -503,7 +503,7 @@ public class UnmannedAerialVehicleManage : MonoBehaviour | ||||||
| 
 | 
 | ||||||
|         if (wrjModel == WRJModel.电子侦察无人机) |         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++) |             for (int i = 0; i < allColliders.Count; i++) | ||||||
|             { |             { | ||||||
|  | @ -512,7 +512,7 @@ public class UnmannedAerialVehicleManage : MonoBehaviour | ||||||
|         } |         } | ||||||
|         else if (wrjModel == WRJModel.光学无人机) |         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++) |             for (int i = 0; i < allColliders.Count; i++) | ||||||
|             { |             { | ||||||
|                 if (allColliders[i].gameObject.tag == "AttackTarget" && !allColliders[i].isTrigger && !attackColliders1.Contains(allColliders[i])) |                 if (allColliders[i].gameObject.tag == "AttackTarget" && !allColliders[i].isTrigger && !attackColliders1.Contains(allColliders[i])) | ||||||
|  |  | ||||||
|  | @ -53,7 +53,7 @@ public class RadioAngleView : MonoBehaviour | ||||||
|         btnClose.onClick.AddListener(() => |         btnClose.onClick.AddListener(() => | ||||||
|         { |         { | ||||||
|             transform.localScale = Vector3.zero; |             transform.localScale = Vector3.zero; | ||||||
|             transform.SetAsLastSibling();// 移到父物体的最后一个位置 |             transform.SetAsLastSibling();//移到父物体的最后一个位置 | ||||||
|         }); |         }); | ||||||
|     } |     } | ||||||
|     private void Update() |     private void Update() | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue