This commit is contained in:
yulong 2024-01-25 17:13:05 +08:00
parent 4af204ec75
commit b55626f96a
1 changed files with 3 additions and 18 deletions

View File

@ -417,7 +417,7 @@ public class UnmannedAerialVehicleManage : MonoBehaviour
{ {
for (int j = 0; j < str.Length; j++) for (int j = 0; j < str.Length; j++)
{ {
switch (str[i]) switch (str[j])
{ {
case "0": case "0":
dataLinkCommunicationFrequency += "UHF" + ","; dataLinkCommunicationFrequency += "UHF" + ",";
@ -446,29 +446,14 @@ public class UnmannedAerialVehicleManage : MonoBehaviour
} }
} }
break; break;
//dataLinkCommunicationFrequency = weaponitemone[i].para_value;
//switch (weaponitemone[i].para_value)
//{
// case "0":
// dataLinkCommunicationFrequency = "2GHz";
// break;
// case "1":
// dataLinkCommunicationFrequency = "4GHz";
// break;
// case "2":
// dataLinkCommunicationFrequency = "5GHz";
// break;
// default:
// break;
//}
//break;
case "电子侦察能力:": case "电子侦察能力:":
string[] str1 = weaponitemone[i].para_value.Split(','); string[] str1 = weaponitemone[i].para_value.Split(',');
if (str1.Length > 0) if (str1.Length > 0)
{ {
for (int j = 0; j < str1.Length; j++) for (int j = 0; j < str1.Length; j++)
{ {
switch (str1[i]) switch (str1[j])
{ {
case "0": case "0":
electronicReconnaissanceCapability += "UHF" + ","; electronicReconnaissanceCapability += "UHF" + ",";