using PData; using System.Collections; using System.Collections.Generic; using UnityEngine; /// /// 无人机基类 /// public class UAVBase : MonoBehaviour { public void GetWeatherAttachUAV() { } public void SetWeatherValue() { SenceInfo currentSceneInfo = new SenceInfo(); currentSceneInfo = UIBootstrap.Instance.currentSceneInfo.data; //tenkokuModule.weather_RainAmt = Mathf.Lerp(0f, 1f, float.Parse(currentSceneInfo.EnvRain)); //tenkokuModule.weather_SnowAmt = Mathf.Lerp(0f, 1f, float.Parse(currentSceneInfo.EnvSnow)); //tenkokuModule.weather_WindAmt = Mathf.Lerp(0f, 1f, float.Parse(currentSceneInfo.EnvWindSpeed)); //tenkokuModule.weather_WindDir = Mathf.Lerp(0f, 360f, float.Parse(currentSceneInfo.EnvWindDir)); //tenkokuModule.weather_OvercastAmt = Mathf.Lerp(0f, 1f, 1 - (float.Parse(currentSceneInfo.EnvLight) / 10)); //tenkokuModule.weather_humidity = Mathf.Lerp(0f, 1f, 1 - (float.Parse(currentSceneInfo.EnvWu) / 100)); } }