修改无线电

This commit is contained in:
yulong 2024-01-03 10:09:51 +08:00
parent af05ae030f
commit 3dc9610498
3 changed files with 11 additions and 40 deletions

View File

@ -10,6 +10,9 @@ public class Conversionfrequency : MonoBehaviour
public TerrestrialRadioInterferenceManger terrestrialRadioInterferenceManger;
public Dropdown dropdown;
/// <summary>
/// 改变频率的传值
/// </summary>
public int Smallfrequency;
/// <summary>
/// 取消频率设置按钮
@ -47,43 +50,11 @@ public class Conversionfrequency : MonoBehaviour
});
}
private void Radio()
{
switch (dropdown.value)
{
case 0:
disturb = "1227.60 MHz";
Debug.LogError(disturb);
break;
case 1:
disturb = "1381.05 MHz";
Debug.LogError(disturb);
break;
case 2:
disturb = "1575.42 MHz";
Debug.LogError(disturb);
break;
case 3:
disturb = "2GHz";
Debug.LogError(disturb);
break;
case 4:
disturb = "4GHz";
Debug.LogError(disturb);
break;
case 5:
disturb = "5GHz";
Debug.LogError(disturb);
break;
default:
break;
}
}
void Update()
{
//Radio();
//Smallfrequency=dropdown.value;
}
private void OnDestroy()
{

View File

@ -38,7 +38,7 @@ RenderSettings:
m_ReflectionIntensity: 1
m_CustomReflection: {fileID: 0}
m_Sun: {fileID: 1113159741}
m_IndirectSpecularColor: {r: 0.16232237, g: 0.30615103, b: 0.66928816, a: 1}
m_IndirectSpecularColor: {r: 0.16233039, g: 0.3061562, b: 0.6692572, a: 1}
m_UseRadianceAmbientProbe: 0
--- !u!157 &3
LightmapSettings:
@ -63100,7 +63100,7 @@ MonoBehaviour:
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
randSeed: 1271443031
randSeed: 1283952312
isDoingTransition: 0
minimumHeight: 0
--- !u!114 &1820978574
@ -86123,7 +86123,7 @@ PrefabInstance:
- target: {fileID: 343842254875067695, guid: 708d7629e400aea448483dd5797ffa36,
type: 3}
propertyPath: m_LocalPosition.x
value: -517
value: -439
objectReference: {fileID: 0}
- target: {fileID: 343842254875067695, guid: 708d7629e400aea448483dd5797ffa36,
type: 3}
@ -86133,7 +86133,7 @@ PrefabInstance:
- target: {fileID: 343842254875067695, guid: 708d7629e400aea448483dd5797ffa36,
type: 3}
propertyPath: m_LocalPosition.z
value: 139
value: -12
objectReference: {fileID: 0}
- target: {fileID: 343842254875067695, guid: 708d7629e400aea448483dd5797ffa36,
type: 3}

View File

@ -127,7 +127,7 @@ public class TerrestrialRadioInterferenceManger : MonoBehaviour
/// <summary>
private void Detection()
{
if (Input.GetMouseButtonDown(0))
if (UIBootstrap.Instance.GetRoleByIDPracticeId(GlobalFlag.practiceSeatId) != "0"&&Input.GetMouseButtonDown(0))
{
Ray ray = Camera.main.ScreenPointToRay(Input.mousePosition);
RaycastHit hit;
@ -347,7 +347,7 @@ public class TerrestrialRadioInterferenceManger : MonoBehaviour
{
unmannedAerialVehicleManage = colliders[i].GetComponent<UnmannedAerialVehicleManage>();
}
if (TransmittedPower == "10~30W" || TransmittedPower == "30~50W" && unmannedAerialVehicleManage != null)
if (TransmittedPower == "10~30W" || TransmittedPower == "30~50W50W" && unmannedAerialVehicleManage != null)
{
Debug.LogError("发射功率进来了1");
Debug.LogError(unmannedAerialVehicleManage.satellitePositioningFrequency);