Compare commits

...

2 Commits

Author SHA1 Message Date
yulong b2aa63b940 Merge branch 'master' of http://git.umayle.com:2023/yulong/NewN_UAVPlane 2024-01-25 13:16:09 +08:00
yulong 4d13d6d730 想定 2024-01-25 13:15:58 +08:00
11 changed files with 23082 additions and 16456 deletions

View File

@ -23,15 +23,15 @@ Transform:
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1806990216787483974}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 0.01, y: 0, z: 0.007}
m_LocalRotation: {x: 1, y: 0, z: 0, w: 0}
m_LocalPosition: {x: 0, y: 0.97, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children:
- {fileID: 1929796912102659678}
- {fileID: 2036827053615246670}
m_Father: {fileID: 4884441768212777941}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_LocalEulerAnglesHint: {x: 180, y: 0, z: 0}
--- !u!1 &2900934387019374796
GameObject:
m_ObjectHideFlags: 0
@ -142,10 +142,11 @@ Transform:
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 5224973007127515503}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: -491.42, y: 160.04, z: -89.7}
m_LocalPosition: {x: -491.42, y: 164.71, z: -89.7}
m_LocalScale: {x: 18, y: 18, z: 18}
m_Children:
- {fileID: 4159137828818466878}
- {fileID: 5066023744056983371}
m_Father: {fileID: 0}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
@ -206,8 +207,8 @@ BoxCollider:
m_IsTrigger: 0
m_Enabled: 1
serializedVersion: 2
m_Size: {x: 0.42351785, y: 0.5147799, z: 0.42257693}
m_Center: {x: 0.009579976, y: 0.2519765, z: -0.0063182847}
m_Size: {x: 0.44705203, y: 0.9821413, z: 0.43659788}
m_Center: {x: -0.002187093, y: 0.48565716, z: 0.00069218874}
--- !u!54 &4108524336644022763
Rigidbody:
m_ObjectHideFlags: 0
@ -235,8 +236,8 @@ BoxCollider:
m_IsTrigger: 1
m_Enabled: 1
serializedVersion: 2
m_Size: {x: 0.42351785, y: 0.5147799, z: 0.41892996}
m_Center: {x: 0.009579976, y: 0.2519765, z: -0.006926146}
m_Size: {x: 0.44705203, y: 0.9821413, z: 0.43659788}
m_Center: {x: -0.002187093, y: 0.48565716, z: 0.00069218874}
--- !u!1001 &2003813850601294501
PrefabInstance:
m_ObjectHideFlags: 0
@ -3386,3 +3387,78 @@ Transform:
type: 3}
m_PrefabInstance: {fileID: 2003813850601294501}
m_PrefabAsset: {fileID: 0}
--- !u!1001 &7750064898044553361
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 4884441768212777941}
m_Modifications:
- target: {fileID: 3297729179845302234, guid: 4d0a39637490c8c4a8dffb76bdca7b7a,
type: 3}
propertyPath: m_LocalPosition.x
value: -0
objectReference: {fileID: 0}
- target: {fileID: 3297729179845302234, guid: 4d0a39637490c8c4a8dffb76bdca7b7a,
type: 3}
propertyPath: m_LocalPosition.y
value: 0.443
objectReference: {fileID: 0}
- target: {fileID: 3297729179845302234, guid: 4d0a39637490c8c4a8dffb76bdca7b7a,
type: 3}
propertyPath: m_LocalPosition.z
value: 0.013
objectReference: {fileID: 0}
- target: {fileID: 3297729179845302234, guid: 4d0a39637490c8c4a8dffb76bdca7b7a,
type: 3}
propertyPath: m_LocalRotation.x
value: -0
objectReference: {fileID: 0}
- target: {fileID: 3297729179845302234, guid: 4d0a39637490c8c4a8dffb76bdca7b7a,
type: 3}
propertyPath: m_LocalRotation.y
value: -0
objectReference: {fileID: 0}
- target: {fileID: 3297729179845302234, guid: 4d0a39637490c8c4a8dffb76bdca7b7a,
type: 3}
propertyPath: m_LocalRotation.z
value: -0
objectReference: {fileID: 0}
- target: {fileID: 3297729179845302234, guid: 4d0a39637490c8c4a8dffb76bdca7b7a,
type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 3297729179845302234, guid: 4d0a39637490c8c4a8dffb76bdca7b7a,
type: 3}
propertyPath: m_RootOrder
value: 1
objectReference: {fileID: 0}
- target: {fileID: 3297729179845302234, guid: 4d0a39637490c8c4a8dffb76bdca7b7a,
type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 3297729179845302234, guid: 4d0a39637490c8c4a8dffb76bdca7b7a,
type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 3297729179845302234, guid: 4d0a39637490c8c4a8dffb76bdca7b7a,
type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4021565168103134737, guid: 4d0a39637490c8c4a8dffb76bdca7b7a,
type: 3}
propertyPath: m_Name
value: "\u5E95\u4EF7"
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 4d0a39637490c8c4a8dffb76bdca7b7a, type: 3}
--- !u!4 &5066023744056983371 stripped
Transform:
m_CorrespondingSourceObject: {fileID: 3297729179845302234, guid: 4d0a39637490c8c4a8dffb76bdca7b7a,
type: 3}
m_PrefabInstance: {fileID: 7750064898044553361}
m_PrefabAsset: {fileID: 0}

File diff suppressed because it is too large Load Diff

View File

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

File diff suppressed because it is too large Load Diff

View File

@ -2990,6 +2990,7 @@ Transform:
m_Children:
- {fileID: 3510673994556807547}
- {fileID: 1404913506931093834}
- {fileID: 7160754601854924419}
m_Father: {fileID: 0}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
@ -3009,6 +3010,7 @@ MonoBehaviour:
selectedSide: 1
equipmentType: "\u63A2\u6D4B\u96F7\u8FBE"
deviceID:
ISPlayer: 0
explodePrefab: {fileID: 1000013462590818, guid: ecdd96beb7f93494880c052dfccf9dc1,
type: 3}
isMove: 1
@ -3042,8 +3044,8 @@ BoxCollider:
m_IsTrigger: 0
m_Enabled: 1
serializedVersion: 2
m_Size: {x: 0.79046315, y: 0.5496063, z: 0.35557216}
m_Center: {x: 0.0019768476, y: 0.18566132, z: -0.017790642}
m_Size: {x: 0.7904631, y: 1.0115802, z: 0.4149674}
m_Center: {x: 0.0019768476, y: 0.41664824, z: -0.04748831}
--- !u!114 &3977472425108262599
MonoBehaviour:
m_ObjectHideFlags: 0
@ -3075,8 +3077,7 @@ MonoBehaviour:
PitchBeamwidth: 13
detectionRadius: 3000
NumberOfProbes: 31
Mincamera: {fileID: 0}
radartime: 0
minCamera: {fileID: 0}
--- !u!54 &916690897
Rigidbody:
m_ObjectHideFlags: 0
@ -3104,8 +3105,8 @@ BoxCollider:
m_IsTrigger: 1
m_Enabled: 1
serializedVersion: 2
m_Size: {x: 0.79046315, y: 0.5496063, z: 0.35557216}
m_Center: {x: 0.0019768476, y: 0.18566132, z: -0.017790642}
m_Size: {x: 0.7904631, y: 1.0115802, z: 0.40176857}
m_Center: {x: 0.0019768476, y: 0.41664824, z: -0.040888906}
--- !u!1 &3997290831269633011
GameObject:
m_ObjectHideFlags: 0
@ -3307,7 +3308,7 @@ Transform:
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4320002940974842817}
m_LocalRotation: {x: -0, y: -0.314368, z: -0, w: 0.94930124}
m_LocalPosition: {x: 0.19477351, y: 0.187, z: -0.36361912}
m_LocalPosition: {x: 0.19477351, y: 0.63199973, z: -0.36361912}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children:
- {fileID: 4759884226331144269}
@ -6124,7 +6125,7 @@ PrefabInstance:
- target: {fileID: 2615909122474406281, guid: 1f803842203167d4aa8e14297954d6f2,
type: 3}
propertyPath: m_LocalPosition.y
value: 0
value: 0.445
objectReference: {fileID: 0}
- target: {fileID: 2615909122474406281, guid: 1f803842203167d4aa8e14297954d6f2,
type: 3}
@ -6209,3 +6210,78 @@ Transform:
type: 3}
m_PrefabInstance: {fileID: 3977472424144584899}
m_PrefabAsset: {fileID: 0}
--- !u!1001 &5666653584567099737
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 3977472425108262602}
m_Modifications:
- target: {fileID: 3297729179845302234, guid: 4d0a39637490c8c4a8dffb76bdca7b7a,
type: 3}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 3297729179845302234, guid: 4d0a39637490c8c4a8dffb76bdca7b7a,
type: 3}
propertyPath: m_LocalPosition.y
value: 0.4449997
objectReference: {fileID: 0}
- target: {fileID: 3297729179845302234, guid: 4d0a39637490c8c4a8dffb76bdca7b7a,
type: 3}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 3297729179845302234, guid: 4d0a39637490c8c4a8dffb76bdca7b7a,
type: 3}
propertyPath: m_LocalRotation.x
value: -0
objectReference: {fileID: 0}
- target: {fileID: 3297729179845302234, guid: 4d0a39637490c8c4a8dffb76bdca7b7a,
type: 3}
propertyPath: m_LocalRotation.y
value: -0
objectReference: {fileID: 0}
- target: {fileID: 3297729179845302234, guid: 4d0a39637490c8c4a8dffb76bdca7b7a,
type: 3}
propertyPath: m_LocalRotation.z
value: -0
objectReference: {fileID: 0}
- target: {fileID: 3297729179845302234, guid: 4d0a39637490c8c4a8dffb76bdca7b7a,
type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 3297729179845302234, guid: 4d0a39637490c8c4a8dffb76bdca7b7a,
type: 3}
propertyPath: m_RootOrder
value: 2
objectReference: {fileID: 0}
- target: {fileID: 3297729179845302234, guid: 4d0a39637490c8c4a8dffb76bdca7b7a,
type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 3297729179845302234, guid: 4d0a39637490c8c4a8dffb76bdca7b7a,
type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 3297729179845302234, guid: 4d0a39637490c8c4a8dffb76bdca7b7a,
type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 4021565168103134737, guid: 4d0a39637490c8c4a8dffb76bdca7b7a,
type: 3}
propertyPath: m_Name
value: "\u5E95\u4EF7"
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 4d0a39637490c8c4a8dffb76bdca7b7a, type: 3}
--- !u!4 &7160754601854924419 stripped
Transform:
m_CorrespondingSourceObject: {fileID: 3297729179845302234, guid: 4d0a39637490c8c4a8dffb76bdca7b7a,
type: 3}
m_PrefabInstance: {fileID: 5666653584567099737}
m_PrefabAsset: {fileID: 0}

View File

@ -5945,7 +5945,7 @@ Transform:
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4319031647244969088}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: -0, y: 2.59, z: -0.07}
m_LocalPosition: {x: 0, y: 7.1099997, z: -0.07}
m_LocalScale: {x: 12, y: 12, z: 12}
m_Children:
- {fileID: 7615181138790815507}
@ -9997,7 +9997,7 @@ GameObject:
m_Layer: 12
m_Name: "\u6FC0\u5149\u706B\u63A7\u5E73\u53F0"
m_TagString: AttackTarget
m_Icon: {fileID: -964228994112308473, guid: 0000000000000000d000000000000000, type: 0}
m_Icon: {fileID: 5132851093641282708, guid: 0000000000000000d000000000000000, type: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
@ -10013,6 +10013,7 @@ Transform:
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children:
- {fileID: 3511568331994086970}
- {fileID: 5472595293385458456}
m_Father: {fileID: 0}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
@ -10047,8 +10048,8 @@ BoxCollider:
m_IsTrigger: 0
m_Enabled: 1
serializedVersion: 2
m_Size: {x: 3.4439888, y: 4.231424, z: 2.7337692}
m_Center: {x: -0.027450562, y: 2, z: 0.030721009}
m_Size: {x: 3.4439888, y: 9.541917, z: 2.9010284}
m_Center: {x: -0.027450562, y: 4.6552463, z: -0.05290866}
--- !u!114 &7615181139496386333
MonoBehaviour:
m_ObjectHideFlags: 0
@ -10104,7 +10105,8 @@ MonoBehaviour:
Detection: {fileID: 3494968556799403172, guid: c20b9fea41a9bce4e8780bab3d0e13f9,
type: 3}
isplaser: 1
lasertimes: 0
lasertime: 0
storageIntervalTime: 0
ispcamera: 0
--- !u!114 &7615181139496386323
MonoBehaviour:
@ -10195,8 +10197,8 @@ BoxCollider:
m_IsTrigger: 1
m_Enabled: 1
serializedVersion: 2
m_Size: {x: 3.3844967, y: 4.173179, z: 2.7677143}
m_Center: {x: -0.037365913, y: 1.91, z: 0.04769355}
m_Size: {x: 3.3844967, y: 9.650932, z: 2.9767883}
m_Center: {x: -0.037365913, y: 4.648876, z: -0.05684352}
--- !u!1 &7615181139587479128
GameObject:
m_ObjectHideFlags: 0
@ -12568,3 +12570,93 @@ MeshRenderer:
m_SortingLayerID: 0
m_SortingLayer: 0
m_SortingOrder: 0
--- !u!1001 &7363793700803679426
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 7615181139496386328}
m_Modifications:
- target: {fileID: 3297729179845302234, guid: 4d0a39637490c8c4a8dffb76bdca7b7a,
type: 3}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 3297729179845302234, guid: 4d0a39637490c8c4a8dffb76bdca7b7a,
type: 3}
propertyPath: m_LocalPosition.y
value: 4.52
objectReference: {fileID: 0}
- target: {fileID: 3297729179845302234, guid: 4d0a39637490c8c4a8dffb76bdca7b7a,
type: 3}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 3297729179845302234, guid: 4d0a39637490c8c4a8dffb76bdca7b7a,
type: 3}
propertyPath: m_LocalRotation.x
value: -0
objectReference: {fileID: 0}
- target: {fileID: 3297729179845302234, guid: 4d0a39637490c8c4a8dffb76bdca7b7a,
type: 3}
propertyPath: m_LocalRotation.y
value: -0
objectReference: {fileID: 0}
- target: {fileID: 3297729179845302234, guid: 4d0a39637490c8c4a8dffb76bdca7b7a,
type: 3}
propertyPath: m_LocalRotation.z
value: -0
objectReference: {fileID: 0}
- target: {fileID: 3297729179845302234, guid: 4d0a39637490c8c4a8dffb76bdca7b7a,
type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 3297729179845302234, guid: 4d0a39637490c8c4a8dffb76bdca7b7a,
type: 3}
propertyPath: m_RootOrder
value: 1
objectReference: {fileID: 0}
- target: {fileID: 3297729179845302234, guid: 4d0a39637490c8c4a8dffb76bdca7b7a,
type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 3297729179845302234, guid: 4d0a39637490c8c4a8dffb76bdca7b7a,
type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 3297729179845302234, guid: 4d0a39637490c8c4a8dffb76bdca7b7a,
type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 3297729179845302234, guid: 4d0a39637490c8c4a8dffb76bdca7b7a,
type: 3}
propertyPath: m_LocalScale.x
value: 3
objectReference: {fileID: 0}
- target: {fileID: 3297729179845302234, guid: 4d0a39637490c8c4a8dffb76bdca7b7a,
type: 3}
propertyPath: m_LocalScale.y
value: 3
objectReference: {fileID: 0}
- target: {fileID: 3297729179845302234, guid: 4d0a39637490c8c4a8dffb76bdca7b7a,
type: 3}
propertyPath: m_LocalScale.z
value: 3
objectReference: {fileID: 0}
- target: {fileID: 4021565168103134737, guid: 4d0a39637490c8c4a8dffb76bdca7b7a,
type: 3}
propertyPath: m_Name
value: "\u5E95\u4EF7"
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 4d0a39637490c8c4a8dffb76bdca7b7a, type: 3}
--- !u!4 &5472595293385458456 stripped
Transform:
m_CorrespondingSourceObject: {fileID: 3297729179845302234, guid: 4d0a39637490c8c4a8dffb76bdca7b7a,
type: 3}
m_PrefabInstance: {fileID: 7363793700803679426}
m_PrefabAsset: {fileID: 0}

View File

@ -25,7 +25,7 @@ Transform:
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 480111842}
m_LocalRotation: {x: 0.7071068, y: 0, z: 0, w: 0.7071068}
m_LocalPosition: {x: -0, y: 50.1, z: -0}
m_LocalPosition: {x: -0, y: 50.889, z: -0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 7107351192811671799}
@ -368,7 +368,7 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 0, y: 0}
m_AnchoredPosition: {x: 0, y: 0.789}
m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0, y: 0}
--- !u!223 &8504355243223054739
@ -648,7 +648,7 @@ GameObject:
m_Layer: 12
m_Name: "\u9891\u8C31\u63A2\u6D4B"
m_TagString: AttackTarget
m_Icon: {fileID: 0}
m_Icon: {fileID: -964228994112308473, guid: 0000000000000000d000000000000000, type: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
@ -659,16 +659,17 @@ Transform:
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8886968095416014645}
m_LocalRotation: {x: 0, y: 0.7071068, z: 0, w: 0.7071068}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 10, y: 10, z: 10}
m_Children:
- {fileID: 8023347097485828900}
- {fileID: 152603132415866519}
- {fileID: 480111843}
- {fileID: 7023015303366167859}
m_Father: {fileID: 0}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 90, z: 0}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &7410032260027492996
MonoBehaviour:
m_ObjectHideFlags: 0
@ -720,8 +721,8 @@ BoxCollider:
m_IsTrigger: 0
m_Enabled: 1
serializedVersion: 2
m_Size: {x: 0.465382, y: 0.49515867, z: 0.45029813}
m_Center: {x: 0.07162514, y: 0.24691562, z: -0.045228418}
m_Size: {x: 0.465382, y: 1.3358837, z: 0.45029813}
m_Center: {x: 0.07162514, y: 0.6672781, z: -0.045228414}
--- !u!65 &7318322059178867422
BoxCollider:
m_ObjectHideFlags: 0
@ -733,8 +734,8 @@ BoxCollider:
m_IsTrigger: 1
m_Enabled: 1
serializedVersion: 2
m_Size: {x: 0.465382, y: 0.49515867, z: 0.45029813}
m_Center: {x: 0.07162514, y: 0.24691562, z: -0.045228418}
m_Size: {x: 0.465382, y: 1.3358837, z: 0.45029813}
m_Center: {x: 0.07162514, y: 0.6672781, z: -0.045228414}
--- !u!54 &-3769849861636254006
Rigidbody:
m_ObjectHideFlags: 0
@ -822,6 +823,96 @@ MonoBehaviour:
y: 0
width: 1
height: 1
--- !u!1001 &5527359314712025833
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 7107351192811671799}
m_Modifications:
- target: {fileID: 3297729179845302234, guid: 4d0a39637490c8c4a8dffb76bdca7b7a,
type: 3}
propertyPath: m_LocalPosition.x
value: 0.084
objectReference: {fileID: 0}
- target: {fileID: 3297729179845302234, guid: 4d0a39637490c8c4a8dffb76bdca7b7a,
type: 3}
propertyPath: m_LocalPosition.y
value: 0.789
objectReference: {fileID: 0}
- target: {fileID: 3297729179845302234, guid: 4d0a39637490c8c4a8dffb76bdca7b7a,
type: 3}
propertyPath: m_LocalPosition.z
value: -0.032
objectReference: {fileID: 0}
- target: {fileID: 3297729179845302234, guid: 4d0a39637490c8c4a8dffb76bdca7b7a,
type: 3}
propertyPath: m_LocalRotation.x
value: -0
objectReference: {fileID: 0}
- target: {fileID: 3297729179845302234, guid: 4d0a39637490c8c4a8dffb76bdca7b7a,
type: 3}
propertyPath: m_LocalRotation.y
value: -0
objectReference: {fileID: 0}
- target: {fileID: 3297729179845302234, guid: 4d0a39637490c8c4a8dffb76bdca7b7a,
type: 3}
propertyPath: m_LocalRotation.z
value: -0
objectReference: {fileID: 0}
- target: {fileID: 3297729179845302234, guid: 4d0a39637490c8c4a8dffb76bdca7b7a,
type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 3297729179845302234, guid: 4d0a39637490c8c4a8dffb76bdca7b7a,
type: 3}
propertyPath: m_RootOrder
value: 3
objectReference: {fileID: 0}
- target: {fileID: 3297729179845302234, guid: 4d0a39637490c8c4a8dffb76bdca7b7a,
type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 3297729179845302234, guid: 4d0a39637490c8c4a8dffb76bdca7b7a,
type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 3297729179845302234, guid: 4d0a39637490c8c4a8dffb76bdca7b7a,
type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 3297729179845302234, guid: 4d0a39637490c8c4a8dffb76bdca7b7a,
type: 3}
propertyPath: m_LocalScale.x
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 3297729179845302234, guid: 4d0a39637490c8c4a8dffb76bdca7b7a,
type: 3}
propertyPath: m_LocalScale.y
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 3297729179845302234, guid: 4d0a39637490c8c4a8dffb76bdca7b7a,
type: 3}
propertyPath: m_LocalScale.z
value: 0.5
objectReference: {fileID: 0}
- target: {fileID: 4021565168103134737, guid: 4d0a39637490c8c4a8dffb76bdca7b7a,
type: 3}
propertyPath: m_Name
value: "\u5E95\u4EF7"
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 4d0a39637490c8c4a8dffb76bdca7b7a, type: 3}
--- !u!4 &7023015303366167859 stripped
Transform:
m_CorrespondingSourceObject: {fileID: 3297729179845302234, guid: 4d0a39637490c8c4a8dffb76bdca7b7a,
type: 3}
m_PrefabInstance: {fileID: 5527359314712025833}
m_PrefabAsset: {fileID: 0}
--- !u!1001 &7553133410364982479
PrefabInstance:
m_ObjectHideFlags: 0
@ -837,7 +928,7 @@ PrefabInstance:
- target: {fileID: -8679921383154817045, guid: ab8934f594dda544fbe15dfca8152d03,
type: 3}
propertyPath: m_LocalPosition.y
value: 0.057
value: 0.846
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: ab8934f594dda544fbe15dfca8152d03,
type: 3}

View File

@ -1,8 +1,10 @@
using DataModel.Model;
using LitJson;
using System;
using System.Collections;
using System.Collections.Generic;
using System.Diagnostics.SymbolStore;
using System.Reflection;
using Tenkoku.Core;
using UnityEngine;
@ -207,26 +209,28 @@ public class Scenariopage : MonoBehaviour
public Button offbi_btn;//无线电面板叉掉按钮
public Button queren_btnn;//无线电面板确认按钮
public Button quxia_btnn;//无线电面板取消按钮
public Dropdown Dropdown_frequency;//无线电干扰的频率选项框
public float frequ;//接收选项框文本id
public List<Toggle> togglesdisturbs = new List<Toggle>();
//public Dropdown Dropdown_frequency;//无线电干扰的频率选项框
public string frequ;//接收选项框文本id
public Text frequency_text;//无线电选项框显示文本
public float drive;
public string drive;
public Toggle Toggle_Drive;//驱离选项
//public Text drive_text;//驱离文本
public Toggle Toggle_Crash;//迫降选项
//public Text crash_text;//迫降文本
public List<Toggle> toggledrive = new List<Toggle>();//
public Dropdown Dropdown_power;//发射功率选项框
public float power;
public string power;
public Text power_text;//功率选项框
public Slider Slider_angle;//干扰的角度滑动条
public float angle;
public string angle;
public Text angle_text;//干扰角度显示文本
public Slider Slider_distance;//干扰的距离滑动条
public float distance;
public string distance;
public Text distance_text;
public List<Text> wirelesslist = new List<Text>();//地面无线电干扰
public List<float> wirelesslist2 = new List<float>();
public List<string> wirelesslist2 = new List<string>();
public List<Text> Wirelessunitlist = new List<Text>();//无线单位
public List<string> wirelessunitlist2 = new List<string>();
//无人机蜂群
@ -245,8 +249,15 @@ public class Scenariopage : MonoBehaviour
public Text rcs_text;//显示RCS的文本
public Dropdown Dropdown_orientation;//卫星定位的频率选项框
public Text orienttation_text;//卫星定位显示文本
public Dropdown Dropdown_communication;//网络同信选项框
public Text communication_text;//网络同信的显示文本
//数据通信电子选择能力
public Toggle Toggle1;
public Toggle Toggle2;
public Toggle Toggle3;
public Toggle Toggle4;
public Toggle Toggle5;
public Toggle Toggle6;
public Toggle Toggle7;
public List<Toggle> Toggleones = new List<Toggle>();
//电子侦察能力选项
public Toggle toggle1;
public Toggle toggle2;
@ -261,17 +272,17 @@ public class Scenariopage : MonoBehaviour
public Toggle toggle9;
public List<Toggle> toggleslist = new List<Toggle>();//无人机页面选项
public List<Text> uavnamelist = new List<Text>();//无人机参数
public List<float> uavnamelist2 = new List<float>();//无人机数值
public List<string> uavnamelist2 = new List<string>();//无人机数值
public List<Text> Droneunitlist = new List<Text>();//无人机单位
public List<string> Droneunitlist2 = new List<string>();//单个单位无人机
public float quantity1;
public float quantity2;
public float quantity3;
public float quantity4;
public float quantity5;
public float quantity6;
public float quantity7;
public float quantity8;
public string quantity1;
public string quantity2;
public string quantity3;
public string quantity4;
public string quantity5;
public string quantity6;
public string quantity7;
public string quantity8;
public Weaponitemone weaponitemone1;
public List<string> radaridlist = new List<string>();
public List<string> wirelessidlist = new List<string>();
@ -287,19 +298,28 @@ public class Scenariopage : MonoBehaviour
public Button quxiao_btno;//频谱探测取消按钮
public GameObject spectrum_detection_panl;//频谱探测面板
public Slider Slider_probe1;//探测距离滑动条
public string pingpu1;
public Text Text111;//显示距离文本
public Slider Slider_batch;//批量的处理个数
public string pingpu2;
public Text Text222;//显示批量处理个数文本
public Text text333;//探测帧率
public List<Toggle> toggleprobes=new List<Toggle>();
public string pingpu3;
public Slider Slider_Successful1;//探测成功率
public string pingpu4;
public Text Text333;//显示探测成功率的文本
public Slider Slider_respond;//探测的响应时间
public string pingpu5;
public Text Text444;//显示探测响应时间文本
public Slider Slider_precision;//探测精度
public string pingpu6;
public Text Text555;//显示探测精度
public Slider Slider_minimum1;//最小探测速度
public string pingpu7;
public Text Text666;//显示最小探测速度
public List<Text> tiledlinkedlist = new List<Text>();//储存频谱设备名称
public List<Slider> frequencysliderlist = new List<Slider>();//储存频谱设备参数
public List<string> frequencysliderlist = new List<string>();//储存频谱设备参数
public List<string> frequecystringlist = new List<string>();//存储设备单位
public List<Text> frequecytestlist = new List<Text>();//实时显示参数和单位
//微波武器
@ -377,6 +397,56 @@ public class Scenariopage : MonoBehaviour
Electronicreconnaissance();//电子侦察能里选项和是否有光子侦察
Spectrumdetection();//频谱探测的页面按钮
Microwaveweapon();//微波武器的页面按钮
Wirelessdian();//初始化无线电对应的频率
Toggprobe();//初始化频谱探测的干扰
}
private void Toggprobe()
{
if (toggleprobes.Count >0)
{
for (int i = 0; i < toggleprobes.Count; i++)
{
int index = i;
toggleprobes[index].onValueChanged.AddListener((ison =>
{
if (ison)
{
pingpu3 += index + ",";
Debug.Log(pingpu3);
}
else
{
pingpu3 = pingpu3.Replace(index + ",", "");
Debug.Log(pingpu3);
}
}));
}
}
}
private void Wirelessdian()
{
if (togglesdisturbs.Count > 0)
{
for (int i = 0; i < togglesdisturbs.Count; i++)
{
int index = i;
togglesdisturbs[index].onValueChanged.AddListener((ison =>
{
if (ison)
{
frequ += index + ",";
Debug.Log(frequ);
}
else
{
frequ = frequ.Replace(index + ",", "");
Debug.Log(frequ);
}
}));
}
}
}
private void Microwaveweapon()
@ -474,10 +544,20 @@ public class Scenariopage : MonoBehaviour
}
else
{
for (int i = 0; i < frequencysliderlist.Count; i++)
Slider_probe1.value = 0;
Slider_batch.value = 0;
for (int i = 0; i < toggleprobes.Count; i++)
{
frequencysliderlist[i].value = 0;
toggleprobes[i].isOn = false;
}
Slider_Successful1.value = 0;
Slider_respond.value = 0;
Slider_precision.value = 0;
Slider_minimum1.value = 0;
//for (int i = 0; i < frequencysliderlist.Count; i++)
//{
// frequencysliderlist[i].value = 0;
//}
}
spectrum_detection_panl.gameObject.SetActive(true);
});
@ -502,13 +582,24 @@ public class Scenariopage : MonoBehaviour
private void Spectrummodification()
{
List<Aircraft> aircrafts = new List<Aircraft>();
if (frequencysliderlist.Count>0)
{
frequencysliderlist.Clear();
}
frequencysliderlist.Add(pingpu1);
frequencysliderlist.Add(pingpu2);
frequencysliderlist.Add(pingpu3);
frequencysliderlist.Add(pingpu4);
frequencysliderlist.Add(pingpu5);
frequencysliderlist.Add(pingpu6);
frequencysliderlist.Add(pingpu7);
for (int i = 0; i < tiledlinkedlist.Count; i++)
{
Aircraft aircraft = new Aircraft();
aircraft.id = pinpulist[i];
aircraft.think_device_id = strlist[4];
aircraft.para_name = tiledlinkedlist[i].text;
aircraft.para_value = frequencysliderlist[i].value.ToString();
aircraft.para_value = frequencysliderlist[i].ToString();
aircraft.para_unit = frequecystringlist[i];
aircraft.r1 = frequecytestlist[i].text;
aircrafts.Add(aircraft);
@ -540,18 +631,96 @@ public class Scenariopage : MonoBehaviour
Debug.LogError(str);
weaponitemone1 = Newtonsoft.Json.JsonConvert.DeserializeObject<Weaponitemone>(str);
}
for (int i = 0; i < toggleprobes.Count; i++)
{
toggleprobes[i].isOn = false;
}
if (weaponitemone1.state)
{
for (int i = 0; i < weaponitemone1.data.Count; i++)
{
tiledlinkedlist[i].text = weaponitemone1.data[i].para_name;
frequencysliderlist[i].value = float.Parse(weaponitemone1.data[i].para_value);
frequencysliderlist[i] = weaponitemone1.data[i].para_value;
frequecytestlist[i].text = weaponitemone1.data[i].r1;
}
Slider_probe1.value = float.Parse(frequencysliderlist[0]);
Slider_batch.value = float.Parse(frequencysliderlist[1]);
string[] str1 = frequencysliderlist[2].Split(',');
if (str1.Length>0)
{
for (int i = 0; i < str1.Length; i++)
{
switch (str1[i])
{
case "0":
toggleprobes[0].isOn = true;
break;
case "1":
toggleprobes[1].isOn = true;
break;
case "2":
toggleprobes[2].isOn = true;
break;
case "3":
toggleprobes[3].isOn = true;
break;
case "4":
toggleprobes[4].isOn = true;
break;
case "5":
toggleprobes[5].isOn = true;
break;
case "6":
toggleprobes[6].isOn = true;
break;
default:
break;
}
}
}
Slider_Successful1.value = float.Parse(frequencysliderlist[3]);
Slider_respond.value = float.Parse(frequencysliderlist[4]);
Slider_precision.value = float.Parse(frequencysliderlist[5]);
Slider_minimum1.value = float.Parse(frequencysliderlist[6]);
}
}
private void Electronicreconnaissance()
{
if (Toggleones.Count > 0)
{
for (int i = 0; i < Toggleones.Count; i++)
{
if (Toggleones[i] != null)
{
Destroy(Toggleones[i].gameObject);
}
}
toggles.Clear();
}
Toggleones.Add(Toggle1);
Toggleones.Add(Toggle2);
Toggleones.Add(Toggle3);
Toggleones.Add(Toggle4);
Toggleones.Add(Toggle5);
Toggleones.Add(Toggle6);
Toggleones.Add(Toggle7);
for (int i = 0; i < Toggleones.Count; i++)
{
int index = i;
Toggleones[index].onValueChanged.AddListener((is0n) =>
{
if (is0n == true)
{
quantity6 += index + ",";
}
else
{
string str = index + ",";
quantity6 = quantity6.Replace(str, "");
}
});
}
if (toggles.Count > 0)
{
for (int i = 0; i < toggles.Count; i++)
@ -563,6 +732,7 @@ public class Scenariopage : MonoBehaviour
}
toggles.Clear();
}
toggles.Add(toggle1);
toggles.Add(toggle2);
toggles.Add(toggle3);
@ -575,11 +745,16 @@ public class Scenariopage : MonoBehaviour
int index = j;
toggles[index].onValueChanged.AddListener((ison) =>
{
if (ison == true)
if (ison)
{
quantity7 = index;
quantity7 += index + ",";
Debug.Log(quantity7);
}
else
{
string str = index + ",";
quantity7 = quantity7.Replace(str, "");
}
});
}
if (toggleslist.Count > 0)
@ -599,7 +774,7 @@ public class Scenariopage : MonoBehaviour
{
if (ison == true)
{
quantity8 = index;
quantity8 = index.ToString();
}
});
}
@ -629,7 +804,13 @@ public class Scenariopage : MonoBehaviour
Slider_speed.value = 0;
Slider_rcs.value = 0;
Dropdown_orientation.value = 0;
Dropdown_communication.value = 0;
Toggle1.isOn = false;
Toggle2.isOn = false;
Toggle3.isOn = false;
Toggle4.isOn = false;
Toggle5.isOn = false;
Toggle6.isOn = false;
Toggle7.isOn = false;
toggle1.isOn = true;
toggle8.isOn = true;
}
@ -644,6 +825,7 @@ public class Scenariopage : MonoBehaviour
{
if (strlist.Count > 0)
{
//Electronicreconnaissance();
Uavparametermodification();//无人机修改参数
}
argument_panl.gameObject.SetActive(false);
@ -676,7 +858,7 @@ public class Scenariopage : MonoBehaviour
aircraft.think_device_id = strlist[2];
aircraft.para_name = uavnamelist[i].text;
//aircraft.para_type = "";
aircraft.para_value = uavnamelist2[i].ToString();
aircraft.para_value = uavnamelist2[i];
aircraft.para_unit = Droneunitlist2[i];
aircraft.r1 = Droneunitlist[i].text;
//aircraft.r2 = "";
@ -720,6 +902,13 @@ public class Scenariopage : MonoBehaviour
uavnamelist2.Clear();
}
Debug.Log(weaponitemone1.data.Count);
Toggle1.isOn = false;
Toggle2.isOn = false;
Toggle3.isOn = false;
Toggle4.isOn = false;
Toggle5.isOn = false;
Toggle6.isOn = false;
Toggle7.isOn = false;
toggle1.isOn = false;
toggle2.isOn = false;
toggle3.isOn = false;
@ -732,95 +921,121 @@ public class Scenariopage : MonoBehaviour
for (int i = 0; i < weaponitemone1.data.Count; i++)
{
uavnamelist[i].text = weaponitemone1.data[i].para_name;
uavnamelist2.Add(float.Parse(weaponitemone1.data[i].para_value));
uavnamelist2.Add(weaponitemone1.data[i].para_value);
Droneunitlist[i].text = weaponitemone1.data[i].r1;
}
Slider_endurance.value = uavnamelist2[0];
Slider_endurance.value = float.Parse(uavnamelist2[0]);
switch (uavnamelist2[1])
{
case 0:
case "0":
Dropdown_wind.value = 0;
break;
case 1:
case "1":
Dropdown_wind.value = 1;
break;
case 2:
case "2":
Dropdown_wind.value = 2;
break;
case 3:
case "3":
Dropdown_wind.value = 3;
break;
case 4:
case "4":
Dropdown_wind.value = 4;
break;
case 5:
case "5":
Dropdown_wind.value = 5;
break;
default:
break;
}
Slider_speed.value = uavnamelist2[2];
Slider_rcs.value = uavnamelist2[3];
Slider_speed.value = float.Parse(uavnamelist2[2]);
Slider_rcs.value = float.Parse(uavnamelist2[3]);
switch (uavnamelist2[4])
{
case 0:
case "0":
Dropdown_orientation.value = 0;
break;
case 1:
case "1":
Dropdown_orientation.value = 1;
break;
case 2:
case "2":
Dropdown_orientation.value = 2;
break;
default:
break;
}
switch (uavnamelist2[5])
String[] str1 = uavnamelist2[5].Split(',');
if (str1.Length > 0)
{
case 0:
Dropdown_communication.value = 0;
break;
case 1:
Dropdown_communication.value = 1;
break;
case 2:
Dropdown_communication.value = 2;
break;
default:
break;
for (int i = 0; i < str1.Length; i++)
{
switch (str1[i])
{
case "0":
Toggle1.isOn = true;
break;
case "1":
Toggle2.isOn = true;
break;
case "2":
Toggle3.isOn = true;
break;
case "3":
Toggle4.isOn = true;
break;
case "4":
Toggle5.isOn = true;
break;
case "5":
Toggle6.isOn = true;
break;
case "6":
Toggle7.isOn = true;
break;
default:
break;
}
}
}
switch (uavnamelist2[6])
String[] str2 = uavnamelist2[6].Split(',');
if (str2.Length > 0)
{
case 0:
toggle1.isOn = true;
break;
case 1:
toggle2.isOn = true;
break;
case 2:
toggle3.isOn = true;
break;
case 3:
toggle4.isOn = true;
break;
case 4:
toggle5.isOn = true;
break;
case 5:
toggle6.isOn = true;
break;
case 6:
toggle7.isOn = true;
break;
default:
break;
for (int i = 0; i < str2.Length; i++)
{
switch (str2[i])
{
case "0":
toggle1.isOn = true;
break;
case "1":
toggle2.isOn = true;
break;
case "2":
toggle3.isOn = true;
break;
case "3":
toggle4.isOn = true;
break;
case "4":
toggle5.isOn = true;
break;
case "5":
toggle6.isOn = true;
break;
case "6":
toggle7.isOn = true;
break;
default:
break;
}
}
}
switch (uavnamelist2[7])
{
case 0:
case "0":
toggle8.isOn = true;
break;
case 1:
case "1":
toggle9.isOn = true;
break;
default:
@ -838,7 +1053,10 @@ public class Scenariopage : MonoBehaviour
}
else
{
Dropdown_frequency.value = 0;
for (int i = 0; i < togglesdisturbs.Count; i++)
{
togglesdisturbs[i].isOn = false;
}
Toggle_Drive.isOn = true;
Dropdown_power.value = 0;
Slider_angle.value = 0;
@ -880,7 +1098,7 @@ public class Scenariopage : MonoBehaviour
{
if (ison == true)
{
drive = index;
drive = index.ToString();
}
});
}
@ -906,7 +1124,7 @@ public class Scenariopage : MonoBehaviour
aircraft.think_device_id = strlist[1];
aircraft.para_name = wirelesslist[i].text;
//aircraft.para_type = "";
aircraft.para_value = wirelesslist2[i].ToString("0");
aircraft.para_value = wirelesslist2[i];
aircraft.para_unit = wirelessunitlist2[i];
aircraft.r1 = Wirelessunitlist[i].text;
//aircraft.r2 = "";
@ -955,38 +1173,45 @@ public class Scenariopage : MonoBehaviour
for (int i = 0; i < weaponitemone1.data.Count; i++)
{
wirelesslist[i].text = weaponitemone1.data[i].para_name;
wirelesslist2.Add(float.Parse(weaponitemone1.data[i].para_value));
wirelesslist2.Add(weaponitemone1.data[i].para_value);
Wirelessunitlist[i].text = weaponitemone1.data[i].r1;
}
switch (wirelesslist2[0])
string[] str1 = wirelesslist2[0].Split(',');
for (int i = 0; i < str1.Length; i++)
{
case 0:
Dropdown_frequency.value = 0;
break;
case 1:
Dropdown_frequency.value = 1;
break;
case 2:
Dropdown_frequency.value = 2;
break;
case 3:
Dropdown_frequency.value = 3;
break;
case 4:
Dropdown_frequency.value = 4;
break;
case 5:
Dropdown_frequency.value = 5;
break;
default:
break;
switch (str1[i])
{
case "0":
togglesdisturbs[0].isOn = true;
break;
case "1":
togglesdisturbs[1].isOn = true;
break;
case "2":
togglesdisturbs[2].isOn = true;
break;
case "3":
togglesdisturbs[3].isOn = true;
break;
case "4":
togglesdisturbs[4].isOn = true;
break;
case "5":
togglesdisturbs[5].isOn = true;
break;
case "6":
togglesdisturbs[6].isOn = true;
break;
default:
break;
}
}
switch (wirelesslist2[1])
{
case 0:
case "0":
Toggle_Drive.isOn = true;
break;
case 1:
case "1":
Toggle_Crash.isOn = true;
break;
default:
@ -994,20 +1219,20 @@ public class Scenariopage : MonoBehaviour
}
switch (wirelesslist2[2])
{
case 0:
case "0":
Dropdown_power.value = 0;
break;
case 1:
case "1":
Dropdown_power.value = 1;
break;
case 2:
case "2":
Dropdown_power.value = 2;
break;
default:
break;
}
Slider_angle.value = wirelesslist2[3];
Slider_distance.value = wirelesslist2[4];
Slider_angle.value = float.Parse(wirelesslist2[3]);
Slider_distance.value = float.Parse(wirelesslist2[4]);
}
}
private void Radardetection()
@ -1280,7 +1505,7 @@ public class Scenariopage : MonoBehaviour
{
if (Id == (scen.data[i].Id))
{
if (scen.data[i].EnvRain=="")
if (scen.data[i].EnvRain == "")
{
break;
}
@ -1399,14 +1624,14 @@ public class Scenariopage : MonoBehaviour
break;
}
Slider.value = float.Parse(scen.data[i].EnvLight);
Foggy_slider.value = float.Parse(scen.data[i].EnvWu);
Slider.value = float.Parse(scen.data[i].EnvLight);
Foggy_slider.value = float.Parse(scen.data[i].EnvWu);
var ss = Newtonsoft.Json.JsonConvert.DeserializeObject<List<Modelequipment>>(scen.data[i].DeviceContent);
ss.ForEach((item) =>
{
@ -1439,13 +1664,13 @@ public class Scenariopage : MonoBehaviour
xusshi_text.text = xuslider.value.ToString("f1") + "m/s";
yangguang_text.text = yangguang.value.ToString("0");
angle = Slider_angle.value;
distance = Slider_distance.value;
frequ = Dropdown_frequency.value;
power = Dropdown_power.value;
angle = Slider_angle.value.ToString("0");
distance = Slider_distance.value.ToString("0");
//frequ = Dropdown_frequency.value.ToString("0");
power = Dropdown_power.value.ToString("0");
foggy_text.text = Foggy_slider.value.ToString("0") + "%";
Radar();//雷达页面滑动条显示
Frequency(Dropdown_frequency.value);//干扰频率的下拉
//Frequency(Dropdown_frequency.value);//干扰频率的下拉
Disturb();//干扰页面的角度和距离
Swarmdrone();//蜂群无人机页面滑动条
Laer();//激光火炮控制频台面板
@ -1463,6 +1688,12 @@ public class Scenariopage : MonoBehaviour
private void Spectrumweapon()
{
pingpu1= Slider_probe1.value.ToString("0");
pingpu2 = Slider_batch.value.ToString("0");
pingpu4 = Slider_Successful1.value.ToString("0");
pingpu5 = Slider_respond.value.ToString("0");
pingpu6 = Slider_precision.value.ToString("0");
pingpu7 = Slider_minimum1.value.ToString("0");
Text111.text = Slider_probe1.value.ToString() + "km";
Text222.text = Slider_batch.value.ToString() + "个";
Text333.text = Slider_Successful1.value.ToString() + "%";
@ -1482,12 +1713,11 @@ public class Scenariopage : MonoBehaviour
private void Swarmdrone()
{
quantity1 = Slider_endurance.value;
quantity2 = Dropdown_wind.value;
quantity3 = Slider_speed.value;
quantity4 = Mathf.Round(Slider_rcs.value * 100) / 100;
quantity5 = Dropdown_orientation.value;
quantity6 = Dropdown_communication.value;
quantity1 = Slider_endurance.value.ToString();
quantity2 = Dropdown_wind.value.ToString();
quantity3 = Slider_speed.value.ToString();
quantity4 = (Mathf.Round(Slider_rcs.value * 100) / 100).ToString();
quantity5 = Dropdown_orientation.value.ToString();
endurance_text.text = Slider_endurance.value.ToString("0") + "分钟";
speed_text.text = Slider_speed.value.ToString("f1") + "km";
rcs_text.text = Slider_rcs.value.ToString("f2");
@ -1499,35 +1729,9 @@ public class Scenariopage : MonoBehaviour
distance_text.text = Slider_distance.value.ToString("0") + "km";
}
private void Frequency(int value)
{
switch (value)
{
case 0:
frequency_text.text = "1227.60MHz";
break;
case 1:
frequency_text.text = "1381.05MHz";
break;
case 2:
frequency_text.text = "1575.42MHz";
break;
case 3:
frequency_text.text = "2GHz";
break;
case 4:
frequency_text.text = "4GHz";
break;
case 5:
frequency_text.text = "5GHz";
break;
default:
break;
}
}
private void Radar()
{
turntable_text.text = Slider_turntable.value.ToString("0") + "s/圈";
@ -2100,11 +2304,22 @@ public class Scenariopage : MonoBehaviour
private void Spectrumequipmentweapon()
{
List<Aircraft> aircrafts = new List<Aircraft>();
if (frequencysliderlist.Count>0)
{
frequencysliderlist.Clear();
}
frequencysliderlist.Add(pingpu1);
frequencysliderlist.Add(pingpu2);
frequencysliderlist.Add(pingpu3);
frequencysliderlist.Add(pingpu4);
frequencysliderlist.Add(pingpu5);
frequencysliderlist.Add(pingpu6);
frequencysliderlist.Add(pingpu7);
for (int i = 0; i < tiledlinkedlist.Count; i++)
{
Aircraft aircraft = new Aircraft();
aircraft.para_name = tiledlinkedlist[i].text;
aircraft.para_value = frequencysliderlist[i].value.ToString();
aircraft.para_value = frequencysliderlist[i].ToString();
aircraft.para_unit = frequecystringlist[i];
aircraft.r1 = frequecytestlist[i].text;
aircrafts.Add(aircraft);
@ -2175,7 +2390,7 @@ public class Scenariopage : MonoBehaviour
{
Aircraft aircraft = new Aircraft();
aircraft.para_name = wirelesslist[i].text;
aircraft.para_value = wirelesslist2[i].ToString("0");
aircraft.para_value = wirelesslist2[i];
aircraft.para_unit = wirelessunitlist2[i];
aircraft.r1 = Wirelessunitlist[i].text;
aircrafts.Add(aircraft);

File diff suppressed because it is too large Load Diff

View File

@ -9,7 +9,7 @@ using Newtonsoft.Json.Linq;
public static class InterfaceManager
{
private static string _IP = "192.168.1.5";
private static string _IP = "192.168.97.15";
public static string IP
{
get { return _IP; }

View File

@ -13,7 +13,7 @@ PlayerSettings:
useOnDemandResources: 0
accelerometerFrequency: 60
companyName: DefaultCompany
productName: feijixsdsds
productName: XNDK
defaultCursor: {fileID: 0}
cursorHotspot: {x: 0, y: 0}
m_SplashScreenBackgroundColor: {r: 0.13725491, g: 0.12156863, b: 0.1254902, a: 1}
@ -91,7 +91,7 @@ PlayerSettings:
xboxEnableFitness: 0
visibleInBackground: 1
allowFullscreenSwitch: 1
fullscreenMode: 3
fullscreenMode: 1
xboxSpeechDB: 0
xboxEnableHeadOrientation: 0
xboxEnableGuest: 0