This commit is contained in:
parent
ab2cebf34c
commit
dcc6d69416
|
|
@ -416,7 +416,7 @@ public class Scenariopage : MonoBehaviour
|
||||||
|
|
||||||
private void Microwavemodification()
|
private void Microwavemodification()
|
||||||
{
|
{
|
||||||
List<Aircraft> aircraftlist = new List<Aircraft>();
|
List<Aircraft> aircraftlist = new List<Aircraft>();
|
||||||
for (int i = 0; i < microwavetextlist.Count; i++)
|
for (int i = 0; i < microwavetextlist.Count; i++)
|
||||||
{
|
{
|
||||||
Aircraft aircraft = new Aircraft();
|
Aircraft aircraft = new Aircraft();
|
||||||
|
|
@ -1280,6 +1280,10 @@ public class Scenariopage : MonoBehaviour
|
||||||
{
|
{
|
||||||
if (Id == (scen.data[i].Id))
|
if (Id == (scen.data[i].Id))
|
||||||
{
|
{
|
||||||
|
if (scen.data[i].EnvRain=="")
|
||||||
|
{
|
||||||
|
break;
|
||||||
|
}
|
||||||
weather1.isOn = false;
|
weather1.isOn = false;
|
||||||
weather2.isOn = false;
|
weather2.isOn = false;
|
||||||
weather3.isOn = false;
|
weather3.isOn = false;
|
||||||
|
|
@ -1394,8 +1398,15 @@ public class Scenariopage : MonoBehaviour
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
Slider.value = float.Parse(scen.data[i].EnvLight);
|
|
||||||
Foggy_slider.value = float.Parse(scen.data[i].EnvWu);
|
|
||||||
|
Slider.value = float.Parse(scen.data[i].EnvLight);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Foggy_slider.value = float.Parse(scen.data[i].EnvWu);
|
||||||
|
|
||||||
|
|
||||||
var ss = Newtonsoft.Json.JsonConvert.DeserializeObject<List<Modelequipment>>(scen.data[i].DeviceContent);
|
var ss = Newtonsoft.Json.JsonConvert.DeserializeObject<List<Modelequipment>>(scen.data[i].DeviceContent);
|
||||||
ss.ForEach((item) =>
|
ss.ForEach((item) =>
|
||||||
{
|
{
|
||||||
|
|
@ -1474,7 +1485,7 @@ public class Scenariopage : MonoBehaviour
|
||||||
quantity1 = Slider_endurance.value;
|
quantity1 = Slider_endurance.value;
|
||||||
quantity2 = Dropdown_wind.value;
|
quantity2 = Dropdown_wind.value;
|
||||||
quantity3 = Slider_speed.value;
|
quantity3 = Slider_speed.value;
|
||||||
quantity4 = Mathf.Round(Slider_rcs.value*100)/100;
|
quantity4 = Mathf.Round(Slider_rcs.value * 100) / 100;
|
||||||
quantity5 = Dropdown_orientation.value;
|
quantity5 = Dropdown_orientation.value;
|
||||||
quantity6 = Dropdown_communication.value;
|
quantity6 = Dropdown_communication.value;
|
||||||
endurance_text.text = Slider_endurance.value.ToString("0") + "分钟";
|
endurance_text.text = Slider_endurance.value.ToString("0") + "分钟";
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue