This commit is contained in:
yulong 2024-03-21 18:46:30 +08:00
commit cd80282d19
2 changed files with 4 additions and 4 deletions

View File

@ -550,7 +550,7 @@ public class GameManager : MonoSingleton<GameManager>
{
string info = UIBootstrap.Instance.currentSceneInfo.data.DeviceContent;
//Debug.Log(info);
if (info.Length > 0 && !string.IsNullOrWhiteSpace(info))
if (info.Length > 2 && !string.IsNullOrWhiteSpace(info))
{
modelsInfo = Jsonanalyze.FromJson<List<ModelInfo>>(info);
for (int i = 0; i < modelsInfo.Count; i++)

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;