无线电调节频率

This commit is contained in:
yulong 2023-12-27 13:23:38 +08:00
parent d2e982c8c2
commit 3376a4d3d0
16 changed files with 1724 additions and 199 deletions

View File

@ -300,7 +300,7 @@ MonoBehaviour:
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 0.0107040405, g: 1, b: 0, a: 1}
m_Color: {r: 0.03374872, g: 0.9622642, b: 0.022694906, a: 1}
m_RaycastTarget: 1
m_Maskable: 1
m_OnCullStateChanged:

View File

@ -127,8 +127,8 @@ GameObject:
- component: {fileID: 4108524336644022763}
- component: {fileID: 4108524336644022762}
m_Layer: 12
m_Name: "\u5730\u9762\u65E0\u7EBF\u7535\u5E72\u6270 1"
m_TagString: AttackTarget
m_Name: "\u5730\u9762\u65E0\u7EBF\u7535\u5E72\u6270"
m_TagString: AttackTarget1
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0

View File

@ -2955,80 +2955,6 @@ Transform:
m_Father: {fileID: 8302364974292575514}
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &3977472424450673660
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 3977472424450673659}
- component: {fileID: 3977472424450673657}
m_Layer: 12
m_Name: Camera
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &3977472424450673659
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 3977472424450673660}
m_LocalRotation: {x: 0.7071068, y: 0, z: 0, w: 0.7071068}
m_LocalPosition: {x: -600.00006, y: 4.16, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 3977472425108262602}
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 90, y: 0, z: 0}
--- !u!20 &3977472424450673657
Camera:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 3977472424450673660}
m_Enabled: 1
serializedVersion: 2
m_ClearFlags: 1
m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0}
m_projectionMatrixMode: 1
m_GateFitMode: 2
m_FOVAxisMode: 0
m_SensorSize: {x: 36, y: 24}
m_LensShift: {x: 0, y: 0}
m_FocalLength: 50
m_NormalizedViewPortRect:
serializedVersion: 2
x: 0
y: 0
width: 1
height: 1
near clip plane: 0.3
far clip plane: 1000
field of view: 60
orthographic: 1
orthographic size: 13
m_Depth: 0
m_CullingMask:
serializedVersion: 2
m_Bits: 2048
m_RenderingPath: -1
m_TargetTexture: {fileID: 8400000, guid: d56edd6e03115624aa144b6453c05f2a, type: 2}
m_TargetDisplay: 0
m_TargetEye: 3
m_HDR: 1
m_AllowMSAA: 1
m_AllowDynamicResolution: 0
m_ForceIntoRT: 0
m_OcclusionCulling: 1
m_StereoConvergence: 10
m_StereoSeparation: 0.022
--- !u!1 &3977472425108262603
GameObject:
m_ObjectHideFlags: 0
@ -3063,7 +2989,6 @@ Transform:
m_LocalScale: {x: 12, y: 12, z: 12}
m_Children:
- {fileID: 3510673994556807547}
- {fileID: 3977472424450673659}
- {fileID: 1404913506931093834}
m_Father: {fileID: 0}
m_RootOrder: 0
@ -6227,7 +6152,7 @@ PrefabInstance:
- target: {fileID: 2615909122474406281, guid: 1f803842203167d4aa8e14297954d6f2,
type: 3}
propertyPath: m_RootOrder
value: 2
value: 1
objectReference: {fileID: 0}
- target: {fileID: 2615909122474406281, guid: 1f803842203167d4aa8e14297954d6f2,
type: 3}

View File

@ -9972,7 +9972,7 @@ BoxCollider:
m_Enabled: 1
serializedVersion: 2
m_Size: {x: 3.4439888, y: 4.231424, z: 2.7337692}
m_Center: {x: -0.027450562, y: 0.5829408, z: 0.030721009}
m_Center: {x: -0.027450562, y: 2, z: 0.030721009}
--- !u!114 &7615181139496386333
MonoBehaviour:
m_ObjectHideFlags: 0
@ -10107,7 +10107,7 @@ BoxCollider:
m_Enabled: 1
serializedVersion: 2
m_Size: {x: 3.3844967, y: 4.173179, z: 2.7677143}
m_Center: {x: -0.037365913, y: 0.5724008, z: 0.04769355}
m_Center: {x: -0.037365913, y: 1.91, z: 0.04769355}
--- !u!1 &7615181139587479128
GameObject:
m_ObjectHideFlags: 0

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 38fb1def99b2cd147a96842efe5a355b
PrefabImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,92 @@
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;
public class Conversionfrequency : MonoBehaviour
{
public static Conversionfrequency Instance;
public TerrestrialRadioInterferenceManger terrestrialRadioInterferenceManger;
public Dropdown dropdown;
public int Smallfrequency;
/// <summary>
/// 取消频率设置按钮
/// </summary>
public Button offon_buttn;
/// <summary>
/// 确认频率按钮
/// </summary>
public Button verify_buttn;
/// <summary>
/// 调整场景内无线电干扰的频率
/// </summary>
public string disturb;
private void Awake()
{
Instance = this;
}
void Start()
{
transform.gameObject.SetActive(false);
Controlpage();
}
private void Controlpage()
{
offon_buttn.onClick.AddListener(() =>
{
transform.gameObject.SetActive(false);
});
verify_buttn.onClick.AddListener(() =>
{
Smallfrequency = dropdown.value;
DragManager.Instance.isp = true;
transform.gameObject.SetActive(false);
});
}
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()
{
transform.gameObject.SetActive(false);
}
}

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 88f636d4a0b95894bbf885ff7f9ba198
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -38,7 +38,7 @@ RenderSettings:
m_ReflectionIntensity: 1
m_CustomReflection: {fileID: 0}
m_Sun: {fileID: 1113159741}
m_IndirectSpecularColor: {r: 0.16230208, g: 0.3061382, b: 0.6693564, a: 1}
m_IndirectSpecularColor: {r: 0.16234335, g: 0.30610985, b: 0.66892564, a: 1}
m_UseRadianceAmbientProbe: 0
--- !u!157 &3
LightmapSettings:
@ -6747,6 +6747,7 @@ RectTransform:
- {fileID: 729007801}
- {fileID: 754191142}
- {fileID: 1719983406}
- {fileID: 6596814515507213669}
m_Father: {fileID: 0}
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
@ -37236,6 +37237,11 @@ PrefabInstance:
propertyPath: m_Name
value: WRJSetMenu
objectReference: {fileID: 0}
- target: {fileID: 7828191146020959763, guid: 49c7b765b5b8a8845aad4c0acd9753a8,
type: 3}
propertyPath: m_IsActive
value: 1
objectReference: {fileID: 0}
- target: {fileID: 7828191146970283770, guid: 49c7b765b5b8a8845aad4c0acd9753a8,
type: 3}
propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.size
@ -63087,7 +63093,7 @@ MonoBehaviour:
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
randSeed: 322846390
randSeed: 1081385281
isDoingTransition: 0
minimumHeight: 0
--- !u!114 &1820978574
@ -89630,6 +89636,165 @@ Transform:
m_Father: {fileID: 409497527801905716}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1001 &6596814515507213668
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 147647011}
m_Modifications:
- target: {fileID: 1649737328956898976, guid: 38fb1def99b2cd147a96842efe5a355b,
type: 3}
propertyPath: m_Name
value: frequencypanl
objectReference: {fileID: 0}
- target: {fileID: 1649737328956898977, guid: 38fb1def99b2cd147a96842efe5a355b,
type: 3}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1649737328956898977, guid: 38fb1def99b2cd147a96842efe5a355b,
type: 3}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1649737328956898977, guid: 38fb1def99b2cd147a96842efe5a355b,
type: 3}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1649737328956898977, guid: 38fb1def99b2cd147a96842efe5a355b,
type: 3}
propertyPath: m_LocalRotation.x
value: -0
objectReference: {fileID: 0}
- target: {fileID: 1649737328956898977, guid: 38fb1def99b2cd147a96842efe5a355b,
type: 3}
propertyPath: m_LocalRotation.y
value: -0
objectReference: {fileID: 0}
- target: {fileID: 1649737328956898977, guid: 38fb1def99b2cd147a96842efe5a355b,
type: 3}
propertyPath: m_LocalRotation.z
value: -0
objectReference: {fileID: 0}
- target: {fileID: 1649737328956898977, guid: 38fb1def99b2cd147a96842efe5a355b,
type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 1649737328956898977, guid: 38fb1def99b2cd147a96842efe5a355b,
type: 3}
propertyPath: m_RootOrder
value: 5
objectReference: {fileID: 0}
- target: {fileID: 1649737328956898977, guid: 38fb1def99b2cd147a96842efe5a355b,
type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1649737328956898977, guid: 38fb1def99b2cd147a96842efe5a355b,
type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1649737328956898977, guid: 38fb1def99b2cd147a96842efe5a355b,
type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1649737328956898977, guid: 38fb1def99b2cd147a96842efe5a355b,
type: 3}
propertyPath: m_AnchoredPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1649737328956898977, guid: 38fb1def99b2cd147a96842efe5a355b,
type: 3}
propertyPath: m_AnchoredPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1649737328956898977, guid: 38fb1def99b2cd147a96842efe5a355b,
type: 3}
propertyPath: m_SizeDelta.x
value: 140
objectReference: {fileID: 0}
- target: {fileID: 1649737328956898977, guid: 38fb1def99b2cd147a96842efe5a355b,
type: 3}
propertyPath: m_SizeDelta.y
value: 150
objectReference: {fileID: 0}
- target: {fileID: 1649737328956898977, guid: 38fb1def99b2cd147a96842efe5a355b,
type: 3}
propertyPath: m_AnchorMin.x
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 1649737328956898977, guid: 38fb1def99b2cd147a96842efe5a355b,
type: 3}
propertyPath: m_AnchorMin.y
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 1649737328956898977, guid: 38fb1def99b2cd147a96842efe5a355b,
type: 3}
propertyPath: m_AnchorMax.x
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 1649737328956898977, guid: 38fb1def99b2cd147a96842efe5a355b,
type: 3}
propertyPath: m_AnchorMax.y
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 1649737328956898977, guid: 38fb1def99b2cd147a96842efe5a355b,
type: 3}
propertyPath: m_Pivot.x
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 1649737328956898977, guid: 38fb1def99b2cd147a96842efe5a355b,
type: 3}
propertyPath: m_Pivot.y
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 5839716182141322363, guid: 38fb1def99b2cd147a96842efe5a355b,
type: 3}
propertyPath: offon_buttn
value:
objectReference: {fileID: 6596814515507213671}
- target: {fileID: 5839716182141322363, guid: 38fb1def99b2cd147a96842efe5a355b,
type: 3}
propertyPath: verify_buttn
value:
objectReference: {fileID: 6596814515507213670}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 38fb1def99b2cd147a96842efe5a355b, type: 3}
--- !u!224 &6596814515507213669 stripped
RectTransform:
m_CorrespondingSourceObject: {fileID: 1649737328956898977, guid: 38fb1def99b2cd147a96842efe5a355b,
type: 3}
m_PrefabInstance: {fileID: 6596814515507213668}
m_PrefabAsset: {fileID: 0}
--- !u!114 &6596814515507213670 stripped
MonoBehaviour:
m_CorrespondingSourceObject: {fileID: 7072383433655179645, guid: 38fb1def99b2cd147a96842efe5a355b,
type: 3}
m_PrefabInstance: {fileID: 6596814515507213668}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 4e29b1a8efbd4b44bb3f3716e73f07ff, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!114 &6596814515507213671 stripped
MonoBehaviour:
m_CorrespondingSourceObject: {fileID: 6766835544386984180, guid: 38fb1def99b2cd147a96842efe5a355b,
type: 3}
m_PrefabInstance: {fileID: 6596814515507213668}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 0}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 4e29b1a8efbd4b44bb3f3716e73f07ff, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!23 &6711047951255075265
MeshRenderer:
m_ObjectHideFlags: 0

View File

@ -38,7 +38,7 @@ RenderSettings:
m_ReflectionIntensity: 1
m_CustomReflection: {fileID: 0}
m_Sun: {fileID: 1113159741}
m_IndirectSpecularColor: {r: 0.17281133, g: 0.3051472, b: 0.597025, a: 1}
m_IndirectSpecularColor: {r: 0.16232467, g: 0.3063138, b: 0.67016286, a: 1}
m_UseRadianceAmbientProbe: 0
--- !u!157 &3
LightmapSettings:
@ -5971,6 +5971,9 @@ MonoBehaviour:
huoPaoCtrls: []
modelname_text: {fileID: 0}
isDragWRJ: 1
deviceID:
isPlayer: 0
isThinck: 0
--- !u!1 &147647007
GameObject:
m_ObjectHideFlags: 0
@ -6065,6 +6068,7 @@ RectTransform:
- {fileID: 876353313}
- {fileID: 284678593}
- {fileID: 1703180990}
- {fileID: 1119531101}
m_Father: {fileID: 0}
m_RootOrder: 2
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
@ -11787,12 +11791,12 @@ Light:
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 250950117}
m_Enabled: 0
m_Enabled: 1
serializedVersion: 10
m_Type: 1
m_Shape: 0
m_Color: {r: 0, g: 0, b: 0, a: 0}
m_Intensity: 0.001
m_Color: {r: 1, g: 0.99607843, b: 0.9843137, a: 1}
m_Intensity: 1.088
m_Range: 10
m_SpotAngle: 30
m_InnerSpotAngle: 21.80208
@ -17447,7 +17451,7 @@ Camera:
m_Enabled: 1
serializedVersion: 2
m_ClearFlags: 1
m_BackGroundColor: {r: 0.0041176477, g: 0.0041176477, b: 0.0041176477, a: 0.6}
m_BackGroundColor: {r: 0.39735296, g: 0.46529412, b: 0.52294123, a: 0.6}
m_projectionMatrixMode: 1
m_GateFitMode: 2
m_FOVAxisMode: 0
@ -39730,7 +39734,7 @@ PrefabInstance:
- target: {fileID: 7615181139496386328, guid: 7abae14e48a106d4c8120d0eba515162,
type: 3}
propertyPath: m_RootOrder
value: 16
value: 15
objectReference: {fileID: 0}
- target: {fileID: 7615181139496386328, guid: 7abae14e48a106d4c8120d0eba515162,
type: 3}
@ -40299,6 +40303,12 @@ Transform:
m_Father: {fileID: 0}
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 50, y: -30, z: 0}
--- !u!224 &1119531101 stripped
RectTransform:
m_CorrespondingSourceObject: {fileID: 1649737328956898977, guid: 38fb1def99b2cd147a96842efe5a355b,
type: 3}
m_PrefabInstance: {fileID: 1649737330071162620}
m_PrefabAsset: {fileID: 0}
--- !u!1001 &1165536734
PrefabInstance:
m_ObjectHideFlags: 0
@ -40723,6 +40733,89 @@ MeshFilter:
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1264004773}
m_Mesh: {fileID: 10207, guid: 0000000000000000e000000000000000, type: 0}
--- !u!1 &1272579787
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1272579790}
- component: {fileID: 1272579789}
- component: {fileID: 1272579788}
m_Layer: 0
m_Name: Camera
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!81 &1272579788
AudioListener:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1272579787}
m_Enabled: 1
--- !u!20 &1272579789
Camera:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1272579787}
m_Enabled: 1
serializedVersion: 2
m_ClearFlags: 1
m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0}
m_projectionMatrixMode: 1
m_GateFitMode: 2
m_FOVAxisMode: 0
m_SensorSize: {x: 36, y: 24}
m_LensShift: {x: 0, y: 0}
m_FocalLength: 50
m_NormalizedViewPortRect:
serializedVersion: 2
x: 0
y: 0
width: 1
height: 1
near clip plane: 0.3
far clip plane: 1000
field of view: 60
orthographic: 0
orthographic size: 5
m_Depth: 0
m_CullingMask:
serializedVersion: 2
m_Bits: 4294967295
m_RenderingPath: -1
m_TargetTexture: {fileID: 0}
m_TargetDisplay: 0
m_TargetEye: 3
m_HDR: 1
m_AllowMSAA: 1
m_AllowDynamicResolution: 0
m_ForceIntoRT: 0
m_OcclusionCulling: 1
m_StereoConvergence: 10
m_StereoSeparation: 0.022
--- !u!4 &1272579790
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1272579787}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 960, y: 540, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 16
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &1319027550
GameObject:
m_ObjectHideFlags: 0
@ -41147,7 +41240,9 @@ MonoBehaviour:
m_EditorClassIdentifier:
playerTransformPrefab: {fileID: 8716064937965754113, guid: efe92e3dbc7b77747979793b50eb6456,
type: 3}
spawnPos: {fileID: 1618372688}
currentSpt: {fileID: 0}
redSpawnPos: {fileID: 0}
blueSpawnPos: {fileID: 0}
userIds:
tenkokuModule: {fileID: 1820978573}
modelsInfo:
@ -41159,6 +41254,13 @@ MonoBehaviour:
wrjDrag: {fileID: 0}
ldDrag: {fileID: 0}
hpDrag: {fileID: 0}
wxdDrag: {fileID: 0}
ppDrag: {fileID: 0}
wbDrag: {fileID: 0}
Teacher: {fileID: 0}
student: {fileID: 0}
posture: {fileID: 0}
players: []
--- !u!4 &1436809530
Transform:
m_ObjectHideFlags: 0
@ -41485,7 +41587,7 @@ Light:
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1452191771}
m_Enabled: 1
m_Enabled: 0
serializedVersion: 10
m_Type: 1
m_Shape: 0
@ -51869,27 +51971,27 @@ PrefabInstance:
type: 3}
- target: {fileID: 2058299518, guid: 67585a2b4d19db24ba6c09ffdf9d9d15, type: 3}
propertyPath: m_AnchorMin.y
value: 0
value: 1
objectReference: {fileID: 0}
- target: {fileID: 2058299518, guid: 67585a2b4d19db24ba6c09ffdf9d9d15, type: 3}
propertyPath: m_AnchorMax.y
value: 0
value: 1
objectReference: {fileID: 0}
- target: {fileID: 2058299518, guid: 67585a2b4d19db24ba6c09ffdf9d9d15, type: 3}
propertyPath: m_AnchoredPosition.x
value: 0
value: 75
objectReference: {fileID: 0}
- target: {fileID: 2058299518, guid: 67585a2b4d19db24ba6c09ffdf9d9d15, type: 3}
propertyPath: m_AnchoredPosition.y
value: 0
value: -60
objectReference: {fileID: 0}
- target: {fileID: 2058299518, guid: 67585a2b4d19db24ba6c09ffdf9d9d15, type: 3}
propertyPath: m_SizeDelta.x
value: 0
value: 110
objectReference: {fileID: 0}
- target: {fileID: 2058299518, guid: 67585a2b4d19db24ba6c09ffdf9d9d15, type: 3}
propertyPath: m_SizeDelta.y
value: 0
value: 80
objectReference: {fileID: 0}
- target: {fileID: 2108704405, guid: 67585a2b4d19db24ba6c09ffdf9d9d15, type: 3}
propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.data[0].m_Target
@ -52005,6 +52107,11 @@ PrefabInstance:
propertyPath: m_Name
value: Task_panel
objectReference: {fileID: 0}
- target: {fileID: 1862065803563357529, guid: 67585a2b4d19db24ba6c09ffdf9d9d15,
type: 3}
propertyPath: m_IsActive
value: 0
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 67585a2b4d19db24ba6c09ffdf9d9d15, type: 3}
--- !u!1 &1676667579
@ -53180,16 +53287,16 @@ MonoBehaviour:
moonlightObject: {fileID: 639984703}
moonLightAmt: 0.90791565
moonPhase: 0.54604214
ambientCol: {r: 0, g: 0, b: 0, a: 1}
colorSun: {r: 0, g: 0, b: 0, a: 1}
ambientCol: {r: 1, g: 1, b: 1, a: 1}
colorSun: {r: 1, g: 0.99607843, b: 0.9843137, a: 1}
colorMoon: {r: 0.4392157, g: 0.5921569, b: 0.69803923, a: 1}
colorSkyBase: {r: 0.00627451, g: 0.00627451, b: 0.00627451, a: 0.8}
colorSkyBaseLow: {r: 0.007843138, g: 0.007843138, b: 0.007843138, a: 1}
colorHorizon: {r: 0.12235295, g: 0.2964706, b: 0.36705884, a: 1.2}
colorSkyBase: {r: 0.6054902, g: 0.7090196, b: 0.7968628, a: 0.8}
colorSkyBaseLow: {r: 0.75686276, g: 0.88627446, b: 0.9960785, a: 1}
colorHorizon: {r: 0.9082354, g: 1.0682354, b: 1.1952941, a: 1.2}
colorHorizonLow: {r: 0.9082354, g: 1.0682354, b: 1.1952941, a: 1.2}
colorSkyAmbient: {r: 0, g: 0, b: 0, a: 1}
colorClouds: {r: 0, g: 0, b: 0, a: 1}
colorHighlightClouds: {r: 0, g: 0, b: 0, a: 1}
colorSkyAmbient: {r: 1, g: 1, b: 1, a: 1}
colorClouds: {r: 1, g: 1, b: 1, a: 1}
colorHighlightClouds: {r: 1, g: 1, b: 1, a: 1}
colorSkyboxGround: {r: 0.1102941, g: 0.08836951, b: 0.06487888, a: 1}
colorSkyboxMie: {r: 1, g: 1, b: 1, a: 1}
displayTime: '[ 10:30:00 AM] [ 3/6/1027 ad]'
@ -53527,7 +53634,7 @@ MonoBehaviour:
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
randSeed: 113987687
randSeed: 1002170093
isDoingTransition: 0
minimumHeight: 0
--- !u!114 &1820978574
@ -74647,6 +74754,125 @@ GameObject:
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!1001 &1649737330071162620
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 147647011}
m_Modifications:
- target: {fileID: 1649737328956898976, guid: 38fb1def99b2cd147a96842efe5a355b,
type: 3}
propertyPath: m_Name
value: frequencypanl
objectReference: {fileID: 0}
- target: {fileID: 1649737328956898977, guid: 38fb1def99b2cd147a96842efe5a355b,
type: 3}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1649737328956898977, guid: 38fb1def99b2cd147a96842efe5a355b,
type: 3}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1649737328956898977, guid: 38fb1def99b2cd147a96842efe5a355b,
type: 3}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1649737328956898977, guid: 38fb1def99b2cd147a96842efe5a355b,
type: 3}
propertyPath: m_LocalRotation.x
value: -0
objectReference: {fileID: 0}
- target: {fileID: 1649737328956898977, guid: 38fb1def99b2cd147a96842efe5a355b,
type: 3}
propertyPath: m_LocalRotation.y
value: -0
objectReference: {fileID: 0}
- target: {fileID: 1649737328956898977, guid: 38fb1def99b2cd147a96842efe5a355b,
type: 3}
propertyPath: m_LocalRotation.z
value: -0
objectReference: {fileID: 0}
- target: {fileID: 1649737328956898977, guid: 38fb1def99b2cd147a96842efe5a355b,
type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 1649737328956898977, guid: 38fb1def99b2cd147a96842efe5a355b,
type: 3}
propertyPath: m_RootOrder
value: 3
objectReference: {fileID: 0}
- target: {fileID: 1649737328956898977, guid: 38fb1def99b2cd147a96842efe5a355b,
type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1649737328956898977, guid: 38fb1def99b2cd147a96842efe5a355b,
type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1649737328956898977, guid: 38fb1def99b2cd147a96842efe5a355b,
type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1649737328956898977, guid: 38fb1def99b2cd147a96842efe5a355b,
type: 3}
propertyPath: m_AnchoredPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1649737328956898977, guid: 38fb1def99b2cd147a96842efe5a355b,
type: 3}
propertyPath: m_AnchoredPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 1649737328956898977, guid: 38fb1def99b2cd147a96842efe5a355b,
type: 3}
propertyPath: m_SizeDelta.x
value: 140
objectReference: {fileID: 0}
- target: {fileID: 1649737328956898977, guid: 38fb1def99b2cd147a96842efe5a355b,
type: 3}
propertyPath: m_SizeDelta.y
value: 150
objectReference: {fileID: 0}
- target: {fileID: 1649737328956898977, guid: 38fb1def99b2cd147a96842efe5a355b,
type: 3}
propertyPath: m_AnchorMin.x
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 1649737328956898977, guid: 38fb1def99b2cd147a96842efe5a355b,
type: 3}
propertyPath: m_AnchorMin.y
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 1649737328956898977, guid: 38fb1def99b2cd147a96842efe5a355b,
type: 3}
propertyPath: m_AnchorMax.x
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 1649737328956898977, guid: 38fb1def99b2cd147a96842efe5a355b,
type: 3}
propertyPath: m_AnchorMax.y
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 1649737328956898977, guid: 38fb1def99b2cd147a96842efe5a355b,
type: 3}
propertyPath: m_Pivot.x
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 1649737328956898977, guid: 38fb1def99b2cd147a96842efe5a355b,
type: 3}
propertyPath: m_Pivot.y
value: 0.5
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 38fb1def99b2cd147a96842efe5a355b, type: 3}
--- !u!1001 &3977472424859403087
PrefabInstance:
m_ObjectHideFlags: 0
@ -75288,22 +75514,22 @@ PrefabInstance:
- target: {fileID: 7828191145763698016, guid: 49c7b765b5b8a8845aad4c0acd9753a8,
type: 3}
propertyPath: m_AnchorMin.y
value: 0
value: 1
objectReference: {fileID: 0}
- target: {fileID: 7828191145763698016, guid: 49c7b765b5b8a8845aad4c0acd9753a8,
type: 3}
propertyPath: m_AnchorMax.y
value: 0
value: 1
objectReference: {fileID: 0}
- target: {fileID: 7828191145763698016, guid: 49c7b765b5b8a8845aad4c0acd9753a8,
type: 3}
propertyPath: m_AnchoredPosition.x
value: 0
value: 80
objectReference: {fileID: 0}
- target: {fileID: 7828191145763698016, guid: 49c7b765b5b8a8845aad4c0acd9753a8,
type: 3}
propertyPath: m_AnchoredPosition.y
value: 0
value: -45.8
objectReference: {fileID: 0}
- target: {fileID: 7828191145763698017, guid: 49c7b765b5b8a8845aad4c0acd9753a8,
type: 3}
@ -75353,22 +75579,22 @@ PrefabInstance:
- target: {fileID: 7828191145835787466, guid: 49c7b765b5b8a8845aad4c0acd9753a8,
type: 3}
propertyPath: m_AnchorMin.y
value: 0
value: 1
objectReference: {fileID: 0}
- target: {fileID: 7828191145835787466, guid: 49c7b765b5b8a8845aad4c0acd9753a8,
type: 3}
propertyPath: m_AnchorMax.y
value: 0
value: 1
objectReference: {fileID: 0}
- target: {fileID: 7828191145835787466, guid: 49c7b765b5b8a8845aad4c0acd9753a8,
type: 3}
propertyPath: m_AnchoredPosition.x
value: 0
value: 80
objectReference: {fileID: 0}
- target: {fileID: 7828191145835787466, guid: 49c7b765b5b8a8845aad4c0acd9753a8,
type: 3}
propertyPath: m_AnchoredPosition.y
value: 0
value: -138.2
objectReference: {fileID: 0}
- target: {fileID: 7828191145920499402, guid: 49c7b765b5b8a8845aad4c0acd9753a8,
type: 3}
@ -75378,22 +75604,22 @@ PrefabInstance:
- target: {fileID: 7828191145920499405, guid: 49c7b765b5b8a8845aad4c0acd9753a8,
type: 3}
propertyPath: m_AnchorMin.y
value: 0
value: 1
objectReference: {fileID: 0}
- target: {fileID: 7828191145920499405, guid: 49c7b765b5b8a8845aad4c0acd9753a8,
type: 3}
propertyPath: m_AnchorMax.y
value: 0
value: 1
objectReference: {fileID: 0}
- target: {fileID: 7828191145920499405, guid: 49c7b765b5b8a8845aad4c0acd9753a8,
type: 3}
propertyPath: m_AnchoredPosition.x
value: 0
value: 80
objectReference: {fileID: 0}
- target: {fileID: 7828191145920499405, guid: 49c7b765b5b8a8845aad4c0acd9753a8,
type: 3}
propertyPath: m_AnchoredPosition.y
value: 0
value: -107.399994
objectReference: {fileID: 0}
- target: {fileID: 7828191146020959760, guid: 49c7b765b5b8a8845aad4c0acd9753a8,
type: 3}
@ -75468,7 +75694,7 @@ PrefabInstance:
- target: {fileID: 7828191146020959760, guid: 49c7b765b5b8a8845aad4c0acd9753a8,
type: 3}
propertyPath: m_SizeDelta.y
value: 0
value: 154
objectReference: {fileID: 0}
- target: {fileID: 7828191146020959760, guid: 49c7b765b5b8a8845aad4c0acd9753a8,
type: 3}
@ -75505,6 +75731,11 @@ PrefabInstance:
propertyPath: m_Name
value: WRJSetMenu
objectReference: {fileID: 0}
- target: {fileID: 7828191146020959763, guid: 49c7b765b5b8a8845aad4c0acd9753a8,
type: 3}
propertyPath: m_IsActive
value: 0
objectReference: {fileID: 0}
- target: {fileID: 7828191146970283770, guid: 49c7b765b5b8a8845aad4c0acd9753a8,
type: 3}
propertyPath: m_OnClick.m_PersistentCalls.m_Calls.Array.size
@ -75548,22 +75779,22 @@ PrefabInstance:
- target: {fileID: 7828191146970283773, guid: 49c7b765b5b8a8845aad4c0acd9753a8,
type: 3}
propertyPath: m_AnchorMin.y
value: 0
value: 1
objectReference: {fileID: 0}
- target: {fileID: 7828191146970283773, guid: 49c7b765b5b8a8845aad4c0acd9753a8,
type: 3}
propertyPath: m_AnchorMax.y
value: 0
value: 1
objectReference: {fileID: 0}
- target: {fileID: 7828191146970283773, guid: 49c7b765b5b8a8845aad4c0acd9753a8,
type: 3}
propertyPath: m_AnchoredPosition.x
value: 0
value: 80
objectReference: {fileID: 0}
- target: {fileID: 7828191146970283773, guid: 49c7b765b5b8a8845aad4c0acd9753a8,
type: 3}
propertyPath: m_AnchoredPosition.y
value: 0
value: -15
objectReference: {fileID: 0}
- target: {fileID: 7828191147017850482, guid: 49c7b765b5b8a8845aad4c0acd9753a8,
type: 3}
@ -75613,91 +75844,22 @@ PrefabInstance:
- target: {fileID: 7828191147017850485, guid: 49c7b765b5b8a8845aad4c0acd9753a8,
type: 3}
propertyPath: m_AnchorMin.y
value: 0
value: 1
objectReference: {fileID: 0}
- target: {fileID: 7828191147017850485, guid: 49c7b765b5b8a8845aad4c0acd9753a8,
type: 3}
propertyPath: m_AnchorMax.y
value: 0
value: 1
objectReference: {fileID: 0}
- target: {fileID: 7828191147017850485, guid: 49c7b765b5b8a8845aad4c0acd9753a8,
type: 3}
propertyPath: m_AnchoredPosition.x
value: 0
value: 80
objectReference: {fileID: 0}
- target: {fileID: 7828191147017850485, guid: 49c7b765b5b8a8845aad4c0acd9753a8,
type: 3}
propertyPath: m_AnchoredPosition.y
value: 0
value: -76.6
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 49c7b765b5b8a8845aad4c0acd9753a8, type: 3}
--- !u!1001 &8180432866126196865
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 0}
m_Modifications:
- target: {fileID: 280794634631992890, guid: 121324ce722bdb944a7cc1c7c3a5077f,
type: 3}
propertyPath: m_LocalPosition.x
value: -491.59998
objectReference: {fileID: 0}
- target: {fileID: 280794634631992890, guid: 121324ce722bdb944a7cc1c7c3a5077f,
type: 3}
propertyPath: m_LocalPosition.y
value: 168.76
objectReference: {fileID: 0}
- target: {fileID: 280794634631992890, guid: 121324ce722bdb944a7cc1c7c3a5077f,
type: 3}
propertyPath: m_LocalPosition.z
value: -89.7
objectReference: {fileID: 0}
- target: {fileID: 280794634631992890, guid: 121324ce722bdb944a7cc1c7c3a5077f,
type: 3}
propertyPath: m_LocalRotation.x
value: -0.5
objectReference: {fileID: 0}
- target: {fileID: 280794634631992890, guid: 121324ce722bdb944a7cc1c7c3a5077f,
type: 3}
propertyPath: m_LocalRotation.y
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 280794634631992890, guid: 121324ce722bdb944a7cc1c7c3a5077f,
type: 3}
propertyPath: m_LocalRotation.z
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 280794634631992890, guid: 121324ce722bdb944a7cc1c7c3a5077f,
type: 3}
propertyPath: m_LocalRotation.w
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 280794634631992890, guid: 121324ce722bdb944a7cc1c7c3a5077f,
type: 3}
propertyPath: m_RootOrder
value: 15
objectReference: {fileID: 0}
- target: {fileID: 280794634631992890, guid: 121324ce722bdb944a7cc1c7c3a5077f,
type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: -90
objectReference: {fileID: 0}
- target: {fileID: 280794634631992890, guid: 121324ce722bdb944a7cc1c7c3a5077f,
type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 90
objectReference: {fileID: 0}
- target: {fileID: 280794634631992890, guid: 121324ce722bdb944a7cc1c7c3a5077f,
type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 625513913607457920, guid: 121324ce722bdb944a7cc1c7c3a5077f,
type: 3}
propertyPath: m_Name
value: "\u5730\u9762\u65E0\u7EBF\u7535\u5E72\u6270"
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 121324ce722bdb944a7cc1c7c3a5077f, type: 3}

View File

@ -14,6 +14,10 @@ public class DragManager : MonoSingleton<DragManager>
public List<string> modellist = new List<string>();//存入最开始场景生成模型的名字
public Dictionary<string,int> model = new Dictionary<string,int>();
/// <summary>
/// 判断无线电干扰是否启用
/// </summary>
public bool isp=false;
void Start()
{

View File

@ -150,6 +150,7 @@ public class GameManager : MonoSingleton<GameManager>
Ray ray = Camera.main.ScreenPointToRay(Input.mousePosition);
RaycastHit hitInfo;
if (Physics.Raycast(ray, out hitInfo, 1000))
{
if (hitInfo.collider.tag == "WRJ")
{

View File

@ -74,7 +74,7 @@ public class ToolsBootstrap : MonoSingleton<ToolsBootstrap>
recordeulerAngles = mCamera.transform.eulerAngles;
buleInstruct.SetActive(true);
mCamera.transform.position = new Vector3(0, 556f, -10f);
mCamera.transform.eulerAngles = new Vector3(90f, 0f, 0f);
mCamera.transform.eulerAngles = new Vector3(90f, 0f, 0f);
mCamera.orthographic = true;
Switch2DModel(true);
}

View File

@ -310,13 +310,13 @@ public class RadarManger : MonoBehaviour
private void OnMouseEnter()
{
Debug.Log("鼠标进入");
Debug.LogError("鼠标进入");
RadarUi.transform.localScale = Vector3.one;
}
private void OnMouseExit()
{
Debug.Log("鼠标离开");
Debug.LogError("鼠标离开");
RadarUi.transform.localScale = Vector3.zero;
}

View File

@ -64,6 +64,7 @@ public class SingleMachineTest : MonoBehaviour
if (hitInfo.collider.tag == "WRJ")
{
UnmannedAerialVehicleUI.Instance.unmannedAerialVehicleManage = hitInfo.collider.GetComponent<UnmannedAerialVehicleManage>();
}
}
}

View File

@ -7,6 +7,7 @@ using DG.Tweening;
using Newtonsoft.Json;
using static InterfaceManager;
using System;
using UnityEngine.UI;
/// <summary>
/// 地面无线电干扰控制
@ -118,8 +119,70 @@ public class TerrestrialRadioInterferenceManger : MonoBehaviour
}
void LateUpdate()
{
Detection();
if (DragManager.Instance.isp)
{
Interference(Conversionfrequency.Instance.Smallfrequency);
}
Interferencemode();
}
/// <summary>
/// 点击无线电显示UI
/// <summary>
private void Detection()
{
if (Input.GetMouseButtonDown(0))
{
Ray ray = Camera.main.ScreenPointToRay(Input.mousePosition);
RaycastHit hit;
if (Physics.Raycast(ray, out hit, 1000))
{
if (hit.transform.tag== "AttackTarget1")
{
Debug.LogError("进来了");
Conversionfrequency.Instance.terrestrialRadioInterferenceManger = hit.collider.GetComponent<TerrestrialRadioInterferenceManger>();
Conversionfrequency.Instance.gameObject.SetActive(true);
}
}
}
}
/// <summary>
/// 把UI面板上的频率传给无线电
/// </summary>
public void Interference(int nubmer)
{
switch (nubmer)
{
case 0:
InterferingFrequency = "1227.60 MHz";
Debug.LogError(InterferingFrequency);
break;
case 1:
InterferingFrequency = "1381.05 MHz";
Debug.LogError(InterferingFrequency);
break;
case 2:
InterferingFrequency = "1575.42 MHz";
Debug.LogError(InterferingFrequency);
break;
case 3:
InterferingFrequency = "2GHz";
Debug.LogError(InterferingFrequency);
break;
case 4:
InterferingFrequency = "4GHz";
Debug.LogError(InterferingFrequency);
break;
case 5:
InterferingFrequency = "5GHz";
Debug.LogError(InterferingFrequency);
break;
default:
break;
}
DragManager.Instance.isp = false;
}
#region
/// <summary>
/// 导条变化调用