Merge branch 'master' of http://git.umayle.com:2023/yulong/NewN_UAVPlane
This commit is contained in:
commit
2e4373b2d2
|
@ -28,6 +28,7 @@ public class Backpack : MonoBehaviour
|
||||||
|
|
||||||
void Update()
|
void Update()
|
||||||
{
|
{
|
||||||
|
if (GlobalFlag.isStartRehearsing) return;
|
||||||
if (Input.GetMouseButtonDown(1))
|
if (Input.GetMouseButtonDown(1))
|
||||||
{
|
{
|
||||||
time = 0.2f;
|
time = 0.2f;
|
||||||
|
|
|
@ -210,16 +210,18 @@ public class GameManager : MonoSingleton<GameManager>
|
||||||
if (Physics.Raycast(ray, out hitInfo, 1000))
|
if (Physics.Raycast(ray, out hitInfo, 1000))
|
||||||
{
|
{
|
||||||
if (hitInfo.collider.tag == "WRJ")
|
if (hitInfo.collider.tag == "WRJ")
|
||||||
|
{
|
||||||
|
if (hitInfo.collider.GetComponent<UnmannedAerialVehicleManage>() != null)
|
||||||
{
|
{
|
||||||
UnmannedAerialVehicleManage unmannedAerialVehicleManage = hitInfo.collider.GetComponent<UnmannedAerialVehicleManage>();
|
UnmannedAerialVehicleManage unmannedAerialVehicleManage = hitInfo.collider.GetComponent<UnmannedAerialVehicleManage>();
|
||||||
UnmannedAerialVehicleUI.Instance.unmannedAerialVehicleManage = unmannedAerialVehicleManage;
|
UnmannedAerialVehicleUI.Instance.unmannedAerialVehicleManage = unmannedAerialVehicleManage;
|
||||||
UnmannedAerialVehicleUI.Instance.ShowButton();
|
UnmannedAerialVehicleUI.Instance.ShowButton();
|
||||||
|
|
||||||
DroneViewDisplay.Instance.CreateUI(unmannedAerialVehicleManage, true);
|
DroneViewDisplay.Instance.CreateUI(unmannedAerialVehicleManage, true);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 切换视图
|
/// 切换视图
|
||||||
|
|
|
@ -115,8 +115,6 @@ public class UIBootstrap : MonoSingleton<UIBootstrap>
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
public void OnGetWorldInfo(string msg)
|
public void OnGetWorldInfo(string msg)
|
||||||
{
|
{
|
||||||
Debug.Log("OnGetWorldInfo====" + msg);
|
Debug.Log("OnGetWorldInfo====" + msg);
|
||||||
|
|
|
@ -190,7 +190,7 @@ public class RadarManger : MonoBehaviour
|
||||||
{
|
{
|
||||||
if (equipmentCommon.isPlayer && timerCoroutine == null)
|
if (equipmentCommon.isPlayer && timerCoroutine == null)
|
||||||
{
|
{
|
||||||
timerCoroutine = StartCoroutine(Timer());
|
//timerCoroutine = StartCoroutine(Timer());
|
||||||
isTimerRunning = true;
|
isTimerRunning = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -239,7 +239,7 @@ public class RadarManger : MonoBehaviour
|
||||||
break;
|
break;
|
||||||
case "探测距离:":
|
case "探测距离:":
|
||||||
DetectionRange = weaponitemone[i].para_value;
|
DetectionRange = weaponitemone[i].para_value;
|
||||||
detectionRadius = float.Parse(DetectionRange) * 100;
|
detectionRadius = float.Parse(DetectionRange) * 200;
|
||||||
minCamera.orthographicSize = detectionRadius;
|
minCamera.orthographicSize = detectionRadius;
|
||||||
break;
|
break;
|
||||||
case "近盲区:":
|
case "近盲区:":
|
||||||
|
|
|
@ -269,10 +269,7 @@ public class UnmannedAerialVehicleManage : MonoBehaviour
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
var _unmannedAerialVehicle = unmannedAerialVehicles.FindAll(x => x != null && x.gameObject.activeSelf);
|
var _unmannedAerialVehicle = unmannedAerialVehicles.FindAll(x => x != null && x.gameObject.activeSelf);
|
||||||
if (_unmannedAerialVehicle.Count == 0)
|
if (_unmannedAerialVehicle.Count == 0)
|
||||||
{
|
{
|
||||||
|
|
|
@ -64,7 +64,6 @@ public class DroneViewDisplay : MonoSingleton<DroneViewDisplay>
|
||||||
/// <param name="isShow">是否显示</param>
|
/// <param name="isShow">是否显示</param>
|
||||||
public void CreateUI(UnmannedAerialVehicleManage unmannedAerialVehicleManage, bool isShow)
|
public void CreateUI(UnmannedAerialVehicleManage unmannedAerialVehicleManage, bool isShow)
|
||||||
{
|
{
|
||||||
Debug.Log("生成:" + unmannedAerialVehicleManage.transform.name);
|
|
||||||
if (unmannedAerialVehicleManage.equipmentCommon.deviceID.Length < 10) return;
|
if (unmannedAerialVehicleManage.equipmentCommon.deviceID.Length < 10) return;
|
||||||
RadioAngleView radioAngleView = radioAngleViews.Find(x => x.deviceID == unmannedAerialVehicleManage.equipmentCommon.deviceID);
|
RadioAngleView radioAngleView = radioAngleViews.Find(x => x.deviceID == unmannedAerialVehicleManage.equipmentCommon.deviceID);
|
||||||
if (radioAngleView)
|
if (radioAngleView)
|
||||||
|
|
Loading…
Reference in New Issue