This commit is contained in:
yulong 2024-01-04 10:17:59 +08:00
parent b16b36ba44
commit 24f0ab95d0
2 changed files with 5 additions and 4 deletions

View File

@ -237,7 +237,7 @@ public class RadarManger : MonoBehaviour
case "探测距离:":
DetectionRange = weaponitemone[i].para_value;
detectionRadius = float.Parse(DetectionRange) * 100;
Mincamera.orthographicSize = detectionRadius;
//Mincamera.orthographicSize = detectionRadius;
break;
case "近盲区:":
NearBlindArea = weaponitemone[i].para_value;
@ -297,6 +297,7 @@ public class RadarManger : MonoBehaviour
var colliders2 = colliders.FindAll(x => x.tag == "WRJ");
if (colliders2.Count > 0)
{
Mincamera.orthographicSize = detectionRadius;
for (int i = 0; i < colliders2.Count; i++)
{
if (i <= NumberOfProbes)

View File

@ -129,7 +129,7 @@ public class TerrestrialRadioInterferenceManger : MonoBehaviour
/// <summary>
private void Detection()
{
if (UIBootstrap.Instance.GetRoleByIDPracticeId(GlobalFlag.practiceSeatId) != "0"&&Input.GetMouseButtonDown(0))
if (UIBootstrap.Instance.GetRoleByIDPracticeId(GlobalFlag.practiceSeatId) != "0" && Input.GetMouseButtonDown(0))
{
Ray ray = Camera.main.ScreenPointToRay(Input.mousePosition);
RaycastHit hit;
@ -139,7 +139,7 @@ public class TerrestrialRadioInterferenceManger : MonoBehaviour
{
return;
}
if (hit.transform.tag == "AttackTarget"&&hit.transform.gameObject.name== "地面无线电干扰(Clone)")
if (hit.transform.tag == "AttackTarget" && hit.transform.gameObject.name == "地面无线电干扰(Clone)")
{
Conversionfrequency.Instance.terrestrialRadioInterferenceManger = hit.transform.GetComponent<TerrestrialRadioInterferenceManger>();
Conversionfrequency.Instance.transform.position = Camera.main.WorldToScreenPoint(hit.point);
@ -456,7 +456,7 @@ public class TerrestrialRadioInterferenceManger : MonoBehaviour
}
else
{
Debug.LogError("目标没有出现在范围里面");
Debug.LogError("目标没有出现在范围里面");
}
}