This commit is contained in:
yulong 2023-11-30 09:08:40 +08:00
parent f62b672ff1
commit 8509f8a246
4 changed files with 6 additions and 4 deletions

View File

@ -582,7 +582,7 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0.5}
m_AnchorMax: {x: 0, y: 0.5}
m_AnchoredPosition: {x: 0, y: 254.06491}
m_AnchoredPosition: {x: 0, y: 292.11127}
m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0, y: 1}
--- !u!114 &7621630000060616885

View File

@ -1 +1 @@
192.168.16.15
192.168.6.15

View File

@ -2056,7 +2056,8 @@ public class Scenariopage : MonoBehaviour
Environment.Snow = "" + snowamt + "";
Environment.WindSpeed = "" + windamt + "";
Environment.WindDir = "" + winddir + "";
Environment.Light = "" + Slider.value.ToString("0");
Environment.Light = (1-Slider.value/10).ToString("f1");
Debug.LogError((1 - Slider.value / 10).ToString("f1"));
string res = JsonMapper.ToJson(Environment);//利用插件LitJson将类对象转为json
Debug.Log(res);
Dictionary<string, string> formDic = new Dictionary<string, string>();//用字典保存到对应的想定id里面

View File

@ -379,7 +379,8 @@ public class GameManager : MonoSingleton<GameManager>
tenkokuModule.weather_SnowAmt = Mathf.Lerp(0f, 1f, float.Parse(UIBootstrap.Instance.currentSceneInfo.data.EnvSnow));
tenkokuModule.weather_WindAmt = Mathf.Lerp(0f, 1f, float.Parse(UIBootstrap.Instance.currentSceneInfo.data.EnvWindSpeed));
tenkokuModule.weather_WindDir = Mathf.Lerp(0f, 1f, float.Parse(UIBootstrap.Instance.currentSceneInfo.data.EnvWindDir));
tenkokuModule.weather_lightning = Mathf.Lerp(0f, 1f, float.Parse(UIBootstrap.Instance.currentSceneInfo.data.EnvLight));
tenkokuModule.weather_OvercastAmt = Mathf.Lerp(0f, 1f, float.Parse(UIBootstrap.Instance.currentSceneInfo.data.EnvLight));
Debug.LogError(tenkokuModule.weather_OvercastAmt);
}