This commit is contained in:
parent
ab2cebf34c
commit
dcc6d69416
|
|
@ -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);
|
Slider.value = float.Parse(scen.data[i].EnvLight);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Foggy_slider.value = float.Parse(scen.data[i].EnvWu);
|
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) =>
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue