Merge branch 'master' of http://git.umayle.com:2023/yulong/NewN_UAVPlane
This commit is contained in:
commit
bd633a2f00
|
@ -185,7 +185,7 @@ RectTransform:
|
|||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1586417955185665358}
|
||||
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_Children:
|
||||
|
|
|
@ -1 +1 @@
|
|||
172.16.1.41:48888
|
||||
192.168.138.15:48888
|
|
@ -1 +1 @@
|
|||
172.16.1.41
|
||||
192.168.138.15
|
|
@ -1,4 +1,5 @@
|
|||
using System;
|
||||
using AdamSync;
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
@ -44,9 +45,13 @@ public class Conversionfrequency : MonoBehaviour
|
|||
});
|
||||
verify_buttn.onClick.AddListener(() =>
|
||||
{
|
||||
Smallfrequency = dropdown.value;
|
||||
terrestrialRadioInterferenceManger.Interference(Smallfrequency);
|
||||
//Smallfrequency = dropdown.value;
|
||||
terrestrialRadioInterferenceManger.InterferingFrequency= dropdown.options[dropdown.value].text;
|
||||
Debug.LogError(terrestrialRadioInterferenceManger.InterferingFrequency);
|
||||
//terrestrialRadioInterferenceManger.Interference(Smallfrequency);
|
||||
transform.gameObject.SetActive(false);
|
||||
string msg = $"send2room EditorDevice,{terrestrialRadioInterferenceManger.equipmentCommon.deviceID},{terrestrialRadioInterferenceManger.InterferingFrequency}";
|
||||
_ = SyncCreateRoom.SendMessageAsync(msg);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -38,7 +38,7 @@ RenderSettings:
|
|||
m_ReflectionIntensity: 1
|
||||
m_CustomReflection: {fileID: 0}
|
||||
m_Sun: {fileID: 1113159741}
|
||||
m_IndirectSpecularColor: {r: 0.16231456, g: 0.30614573, b: 0.66931695, a: 1}
|
||||
m_IndirectSpecularColor: {r: 0.165218, g: 0.3075422, b: 0.6572481, a: 1}
|
||||
m_UseRadianceAmbientProbe: 0
|
||||
--- !u!157 &3
|
||||
LightmapSettings:
|
||||
|
@ -63100,7 +63100,7 @@ MonoBehaviour:
|
|||
m_PreInfinity: 2
|
||||
m_PostInfinity: 2
|
||||
m_RotationOrder: 4
|
||||
randSeed: 1780006765
|
||||
randSeed: 1859322953
|
||||
isDoingTransition: 0
|
||||
minimumHeight: 0
|
||||
--- !u!114 &1820978574
|
||||
|
|
|
@ -38,7 +38,7 @@ RenderSettings:
|
|||
m_ReflectionIntensity: 1
|
||||
m_CustomReflection: {fileID: 0}
|
||||
m_Sun: {fileID: 0}
|
||||
m_IndirectSpecularColor: {r: 0.16521391, g: 0.30764452, b: 0.6578343, a: 1}
|
||||
m_IndirectSpecularColor: {r: 0.165218, g: 0.3075422, b: 0.6572481, a: 1}
|
||||
m_UseRadianceAmbientProbe: 0
|
||||
--- !u!157 &3
|
||||
LightmapSettings:
|
||||
|
@ -106459,7 +106459,7 @@ MonoBehaviour:
|
|||
m_PreInfinity: 2
|
||||
m_PostInfinity: 2
|
||||
m_RotationOrder: 4
|
||||
randSeed: 678732734
|
||||
randSeed: 1860173453
|
||||
isDoingTransition: 0
|
||||
minimumHeight: 0
|
||||
--- !u!114 &1820978574
|
||||
|
|
|
@ -32,7 +32,7 @@ public class DeviceManager : MonoSingleton<DeviceManager>
|
|||
public event System.Action<bool> OnActivationChanged;
|
||||
|
||||
|
||||
// Start is called before the first frame update
|
||||
|
||||
void Start()
|
||||
{
|
||||
SyncCreateRoom.send2roomRequset += GetSend2roomMsg;
|
||||
|
@ -87,10 +87,19 @@ public class DeviceManager : MonoSingleton<DeviceManager>
|
|||
Debug.LogError("设备..:" + data);
|
||||
string[] info = data.Split(',');
|
||||
if (info.Length < 2) return;
|
||||
|
||||
EquipmentCommon equipmentCommon = devices.Find(x => x.deviceID == info[1]);
|
||||
if (info[0] == "EditorDevice")
|
||||
{
|
||||
equipmentCommon.GetComponent<TerrestrialRadioInterferenceManger>().InterferingFrequency = info[2];
|
||||
}
|
||||
else
|
||||
{
|
||||
if (equipmentCommon)
|
||||
{
|
||||
equipmentCommon.ReceivingPositionAngle(info);
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -46,11 +46,6 @@ public class RadarManger : MonoBehaviour
|
|||
/// </summary>
|
||||
public float interval = 5.0f;
|
||||
#endregion
|
||||
|
||||
/// <summary>
|
||||
/// 飞机不显示在小地图上
|
||||
/// <summary>
|
||||
public GameObject minimap;
|
||||
/// <summary>
|
||||
/// 雷达UI预制体
|
||||
/// </summary>
|
||||
|
@ -299,13 +294,9 @@ public class RadarManger : MonoBehaviour
|
|||
Mincamera.orthographicSize = detectionRadius;
|
||||
if (colliders2.Count > 0)
|
||||
{
|
||||
|
||||
if (Random.value > (1 - float.Parse(DetectionSuccessRate)/100))
|
||||
{
|
||||
for (int i = 0; i < colliders2.Count; i++)
|
||||
{
|
||||
if (i <= NumberOfProbes)
|
||||
{
|
||||
|
||||
if (Random.value > (1 - float.Parse(DetectionSuccessRate) / 1000))
|
||||
{
|
||||
UnmannedAerialVehicle unmannedAerialVehicle = colliders2[i].GetComponent<UnmannedAerialVehicle>();
|
||||
if (unmannedAerialVehicle)
|
||||
|
@ -321,11 +312,8 @@ public class RadarManger : MonoBehaviour
|
|||
number++;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
minimap.GetComponent<Camera>().cullingMask = ~(1 << 15);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue