This commit is contained in:
YangHua 2024-03-21 18:01:59 +08:00
parent 5210506806
commit 1aff87507e
1 changed files with 3 additions and 3 deletions

View File

@ -119,7 +119,7 @@ public class RadarManger : MonoBehaviour
/// <summary>
/// 批量标处理能力
/// </summary>
public int rcs = 0;
public float rcs = 0;
/// <summary>
/// 渲染小地图摄像机
/// </summary>
@ -165,7 +165,7 @@ public class RadarManger : MonoBehaviour
if (isStartRehearsing)
{
minCamera.gameObject.SetActive(true);
targets = GameObject.FindGameObjectsWithTag("WRJ").ToList().FindAll(a => a.GetComponent<UnmannedAerialVehicleManage>().GetRCS() > float.Parse(RCS));
targets = GameObject.FindGameObjectsWithTag("WRJ").ToList().FindAll(a => a.GetComponent<UnmannedAerialVehicleManage>().GetRCS() > rcs);
foreach (Transform child in rawImage.transform)
{
@ -304,7 +304,7 @@ public class RadarManger : MonoBehaviour
break;
case "RCS:":
RCS = weaponitemone[i].para_value;
rcs = int.Parse(RCS);
rcs = float.Parse(RCS);
break;
case "探测成功率:":
DetectionSuccessRate = weaponitemone[i].para_value;