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)