28 lines
1.0 KiB
C#
28 lines
1.0 KiB
C#
using PData;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
/// <summary>
|
|
/// 无人机基类
|
|
/// </summary>
|
|
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));
|
|
}
|
|
}
|