This commit is contained in:
yulong 2024-03-05 18:32:06 +08:00
parent 6546693865
commit 2d7ef4a997
1 changed files with 20 additions and 17 deletions

View File

@ -348,24 +348,27 @@ public class UnmannedAerialVehicleManage : MonoBehaviour
if (Spectrumdetection.Radius > 0)
{
gxWRJCamera.orthographicSize = Spectrumdetection.Radius * 1000;
dzWRJCamera.orthographicSize = Spectrumdetection.Radius * 1000;
switch (Spectrumdetection.Radius)
if (gxWRJCamera&&dzWRJCamera)
{
case 1:
reveal = 24;
Mapdisplay();
break;
case 2:
reveal = 48;
Mapdisplay();
break;
case 3:
reveal = 72;
Mapdisplay();
break;
default:
break;
gxWRJCamera.orthographicSize = Spectrumdetection.Radius * 1000;
dzWRJCamera.orthographicSize = Spectrumdetection.Radius * 1000;
switch (Spectrumdetection.Radius)
{
case 1:
reveal = 24;
Mapdisplay();
break;
case 2:
reveal = 48;
Mapdisplay();
break;
case 3:
reveal = 72;
Mapdisplay();
break;
default:
break;
}
}
}
}