模型点击演练测试
This commit is contained in:
parent
1f28b67379
commit
29e4a23181
|
@ -14251,7 +14251,7 @@ GameObject:
|
|||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
m_IsActive: 0
|
||||
--- !u!4 &4000011428506136
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
|
|
|
@ -9,6 +9,7 @@ GameObject:
|
|||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 280794634631992890}
|
||||
- component: {fileID: 7287081401534477579}
|
||||
- component: {fileID: 625513913607457923}
|
||||
- component: {fileID: 7099352370737318148}
|
||||
- component: {fileID: 8730502543110765572}
|
||||
|
@ -35,6 +36,19 @@ Transform:
|
|||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: -90, y: 0, z: 0}
|
||||
--- !u!114 &7287081401534477579
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 625513913607457920}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 0afac659d8be281448f9ecd22f828b72, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
equipmentType: "\u5730\u9762\u65E0\u7EBF\u7535\u5E72\u6270"
|
||||
--- !u!114 &625513913607457923
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
|
@ -47,7 +61,6 @@ MonoBehaviour:
|
|||
m_Script: {fileID: 11500000, guid: 7fbad120748f7254b86c62b691a75f57, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
isStartRehearsing: 0
|
||||
msg: "{\"state\":true,\"message\":\"\",\"data\":[{\"id\":\"1700269137164001\",\"think_device_id\":\"1700269136819002\",\"para_name\":\"\u5E72\u6270\u9891\u7387:\",\"para_type\":\"\",\"para_value\":\"3\",\"para_unit\":\"\\\"\\\"\",\"r1\":\"\",\"r2\":\"\",\"r3\":\"\"},{\"id\":\"1700269137164002\",\"think_device_id\":\"1700269136819002\",\"para_name\":\"\u5E72\u6270\u6A21\u5F0F:\",\"para_type\":\"\",\"para_value\":\"0\",\"para_unit\":\"\\\"\\\"\",\"r1\":\"\",\"r2\":\"\",\"r3\":\"\"},{\"id\":\"1700269137164003\",\"think_device_id\":\"1700269136819002\",\"para_name\":\"\u53D1\u5C04\u529F\u7387:\",\"para_type\":\"\",\"para_value\":\"2\",\"para_unit\":\"\\\"\\\"\",\"r1\":\"\",\"r2\":\"\",\"r3\":\"\"},{\"id\":\"1700269137164004\",\"think_device_id\":\"1700269136819002\",\"para_name\":\"\u5E72\u6270\u89D2\u5EA6:\",\"para_type\":\"\",\"para_value\":\"37\",\"para_unit\":\"\u5EA6\",\"r1\":\"37\u5EA6\",\"r2\":\"\",\"r3\":\"\"},{\"id\":\"1700269137164005\",\"think_device_id\":\"1700269136819002\",\"para_name\":\"\u5E72\u6270\u8DDD\u79BB:\",\"para_type\":\"\",\"para_value\":\"2\",\"para_unit\":\"km\",\"r1\":\"2km\",\"r2\":\"\",\"r3\":\"\"}]}"
|
||||
InterferingFrequency:
|
||||
InterferenceMode:
|
||||
|
@ -55,6 +68,7 @@ MonoBehaviour:
|
|||
InterferenceAngle:
|
||||
InterferenceDistance:
|
||||
detectionRadius: 1000
|
||||
interval: 2
|
||||
--- !u!65 &7099352370737318148
|
||||
BoxCollider:
|
||||
m_ObjectHideFlags: 0
|
||||
|
|
|
@ -3038,6 +3038,7 @@ GameObject:
|
|||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 3977472425108262602}
|
||||
- component: {fileID: 1145900336322340155}
|
||||
- component: {fileID: 3977472425108262601}
|
||||
- component: {fileID: 3977472425108262600}
|
||||
- component: {fileID: 3977472425108262599}
|
||||
|
@ -3067,6 +3068,19 @@ Transform:
|
|||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!114 &1145900336322340155
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 3977472425108262603}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 0afac659d8be281448f9ecd22f828b72, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
equipmentType: "\u63A2\u6D4B\u96F7\u8FBE"
|
||||
--- !u!95 &3977472425108262601
|
||||
Animator:
|
||||
serializedVersion: 3
|
||||
|
@ -3111,7 +3125,7 @@ MonoBehaviour:
|
|||
m_Script: {fileID: 11500000, guid: 8d431a7d95f5da7448bc421314544f20, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
isStartRehearsing: 1
|
||||
interval: 5
|
||||
msg: "{ \"state\":true, \"message\":\"\", \"data\":[ {
|
||||
\"id\":\"1700269137132001\", \"think_device_id\":\"1700269136819001\",
|
||||
\"para_name\":\"\u8F6C\u53F0\u8F6C\u901F:\", \"para_type\":\"\",
|
||||
|
@ -3165,6 +3179,7 @@ MonoBehaviour:
|
|||
AzimuthBeamwidth:
|
||||
PitchBeamwidth:
|
||||
detectionRadius: 200
|
||||
NumberOfProbes: 0
|
||||
--- !u!54 &916690897
|
||||
Rigidbody:
|
||||
m_ObjectHideFlags: 0
|
||||
|
|
|
@ -380,6 +380,7 @@ GameObject:
|
|||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 6865737300552731159}
|
||||
- component: {fileID: -7238547075891962512}
|
||||
- component: {fileID: 41106886}
|
||||
- component: {fileID: 1432105532577387308}
|
||||
- component: {fileID: 3231389817124393935}
|
||||
|
@ -436,6 +437,19 @@ Transform:
|
|||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!114 &-7238547075891962512
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 6865737300552731157}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 0afac659d8be281448f9ecd22f828b72, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
equipmentType: "\u65E0\u4EBA\u673AList"
|
||||
--- !u!65 &41106886
|
||||
BoxCollider:
|
||||
m_ObjectHideFlags: 0
|
||||
|
@ -536,8 +550,8 @@ MonoBehaviour:
|
|||
m_Script: {fileID: 11500000, guid: d7c8a5e37f63c8e419e73f2c1b2ad41e, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
interval: 5
|
||||
pattern: 0
|
||||
isStartRehearsing: 0
|
||||
msg: "{\"state\":true,\"message\":\"\",\"data\":[{\"id\":\"1700269207290001\",\"think_device_id\":\"1700269206959003\",\"para_name\":\"\u7EED\u822A\u65F6\u95F4\uFF1A\",\"para_type\":\"\",\"para_value\":\"28\",\"para_unit\":\"\u5206\u949F\",\"r1\":\"35\u5206\u949F\",\"r2\":\"\",\"r3\":\"\"},{\"id\":\"1700269207290002\",\"think_device_id\":\"1700269206959003\",\"para_name\":\"\u6297\u98CE\u7B49\u7EA7\uFF1A\",\"para_type\":\"\",\"para_value\":\"4\",\"para_unit\":\"\u7EA7\",\"r1\":\"\u7EA7\",\"r2\":\"\",\"r3\":\"\"},{\"id\":\"1700269207290003\",\"think_device_id\":\"1700269206959003\",\"para_name\":\"\u6700\u5927\u98DE\u884C\u901F\u5EA6\uFF1A\",\"para_type\":\"\",\"para_value\":\"8\",\"para_unit\":\"m/s\",\"r1\":\"20.0km\",\"r2\":\"\",\"r3\":\"\"},{\"id\":\"1700269207290004\",\"think_device_id\":\"1700269206959003\",\"para_name\":\"RCS\uFF1A\",\"para_type\":\"\",\"para_value\":\"0\",\"para_unit\":\"/\",\"r1\":\"\u201C\u201D\",\"r2\":\"\",\"r3\":\"\"},{\"id\":\"1700269207290005\",\"think_device_id\":\"1700269206959003\",\"para_name\":\"\u536B\u661F\u5B9A\u4F4D\u9891\u70B9\uFF1A\",\"para_type\":\"\",\"para_value\":\"1\",\"para_unit\":\"/\",\"r1\":\"\u201C\u201D\",\"r2\":\"\",\"r3\":\"\"},{\"id\":\"1700269207290006\",\"think_device_id\":\"1700269206959003\",\"para_name\":\"\u6570\u636E\u94FE\u901A\u4FE1\u9891\u70B9:\",\"para_type\":\"\",\"para_value\":\"2\",\"para_unit\":\"/\",\"r1\":\"\u201C\u201D\",\"r2\":\"\",\"r3\":\"\"},{\"id\":\"1700269207290007\",\"think_device_id\":\"1700269206959003\",\"para_name\":\"\u7535\u5B50\u4FA6\u5BDF\u80FD\u529B:\",\"para_type\":\"\",\"para_value\":\"3\",\"para_unit\":\"/\",\"r1\":\"\u201C\u201D\",\"r2\":\"\",\"r3\":\"\"},{\"id\":\"1700269207290008\",\"think_device_id\":\"1700269206959003\",\"para_name\":\"\u5149\u5B66\u4FA6\u5BDF\u80FD\u529B:\",\"para_type\":\"\",\"para_value\":\"2\",\"para_unit\":\"/\",\"r1\":\"\u201C\u201D\",\"r2\":\"\",\"r3\":\"\"}]}"
|
||||
UAVPrefab: {fileID: 7985558213978141209, guid: 088baeb890d17754287a1161c0b1dceb,
|
||||
type: 3}
|
||||
|
@ -576,6 +590,8 @@ MonoBehaviour:
|
|||
LinePrefab: {fileID: 739704727871026136, guid: 01a28b65d7e53484b8bab2f3cc69ab91,
|
||||
type: 3}
|
||||
airRoute: {fileID: 0}
|
||||
endPosition: {x: 0, y: 0, z: 0}
|
||||
FireSpeed: 20
|
||||
batteryLife:
|
||||
classificationWindResistance:
|
||||
maximumFlyingSpeed:
|
||||
|
@ -1576,6 +1592,18 @@ PrefabInstance:
|
|||
objectReference: {fileID: 0}
|
||||
m_RemovedComponents: []
|
||||
m_SourcePrefab: {fileID: 100100000, guid: 088baeb890d17754287a1161c0b1dceb, type: 3}
|
||||
--- !u!1 &8062921474742261734 stripped
|
||||
GameObject:
|
||||
m_CorrespondingSourceObject: {fileID: 7985558213978141209, guid: 088baeb890d17754287a1161c0b1dceb,
|
||||
type: 3}
|
||||
m_PrefabInstance: {fileID: 87581316664468991}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!4 &8062921474742261735 stripped
|
||||
Transform:
|
||||
m_CorrespondingSourceObject: {fileID: 7985558213978141208, guid: 088baeb890d17754287a1161c0b1dceb,
|
||||
type: 3}
|
||||
m_PrefabInstance: {fileID: 87581316664468991}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!114 &2044690712093867138 stripped
|
||||
MonoBehaviour:
|
||||
m_CorrespondingSourceObject: {fileID: 2114182605201611133, guid: 088baeb890d17754287a1161c0b1dceb,
|
||||
|
@ -1588,18 +1616,6 @@ MonoBehaviour:
|
|||
m_Script: {fileID: 11500000, guid: 8d11073938bcdd54589608b4b411b889, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
--- !u!4 &8062921474742261735 stripped
|
||||
Transform:
|
||||
m_CorrespondingSourceObject: {fileID: 7985558213978141208, guid: 088baeb890d17754287a1161c0b1dceb,
|
||||
type: 3}
|
||||
m_PrefabInstance: {fileID: 87581316664468991}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!1 &8062921474742261734 stripped
|
||||
GameObject:
|
||||
m_CorrespondingSourceObject: {fileID: 7985558213978141209, guid: 088baeb890d17754287a1161c0b1dceb,
|
||||
type: 3}
|
||||
m_PrefabInstance: {fileID: 87581316664468991}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!1001 &715777664892440568
|
||||
PrefabInstance:
|
||||
m_ObjectHideFlags: 0
|
||||
|
@ -2461,18 +2477,18 @@ MonoBehaviour:
|
|||
m_Script: {fileID: 11500000, guid: 8d11073938bcdd54589608b4b411b889, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
--- !u!4 &7438984634337869280 stripped
|
||||
Transform:
|
||||
m_CorrespondingSourceObject: {fileID: 7985558213978141208, guid: 088baeb890d17754287a1161c0b1dceb,
|
||||
type: 3}
|
||||
m_PrefabInstance: {fileID: 715777664892440568}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!1 &7438984634337869281 stripped
|
||||
GameObject:
|
||||
m_CorrespondingSourceObject: {fileID: 7985558213978141209, guid: 088baeb890d17754287a1161c0b1dceb,
|
||||
type: 3}
|
||||
m_PrefabInstance: {fileID: 715777664892440568}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!4 &7438984634337869280 stripped
|
||||
Transform:
|
||||
m_CorrespondingSourceObject: {fileID: 7985558213978141208, guid: 088baeb890d17754287a1161c0b1dceb,
|
||||
type: 3}
|
||||
m_PrefabInstance: {fileID: 715777664892440568}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!1001 &749958366770983279
|
||||
PrefabInstance:
|
||||
m_ObjectHideFlags: 0
|
||||
|
@ -4195,6 +4211,12 @@ PrefabInstance:
|
|||
objectReference: {fileID: 0}
|
||||
m_RemovedComponents: []
|
||||
m_SourcePrefab: {fileID: 100100000, guid: 088baeb890d17754287a1161c0b1dceb, type: 3}
|
||||
--- !u!1 &9173384892180205452 stripped
|
||||
GameObject:
|
||||
m_CorrespondingSourceObject: {fileID: 7985558213978141209, guid: 088baeb890d17754287a1161c0b1dceb,
|
||||
type: 3}
|
||||
m_PrefabInstance: {fileID: 1268904682848828821}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!4 &9173384892180205453 stripped
|
||||
Transform:
|
||||
m_CorrespondingSourceObject: {fileID: 7985558213978141208, guid: 088baeb890d17754287a1161c0b1dceb,
|
||||
|
@ -4213,12 +4235,6 @@ MonoBehaviour:
|
|||
m_Script: {fileID: 11500000, guid: 8d11073938bcdd54589608b4b411b889, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
--- !u!1 &9173384892180205452 stripped
|
||||
GameObject:
|
||||
m_CorrespondingSourceObject: {fileID: 7985558213978141209, guid: 088baeb890d17754287a1161c0b1dceb,
|
||||
type: 3}
|
||||
m_PrefabInstance: {fileID: 1268904682848828821}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!1001 &1468629587382336293
|
||||
PrefabInstance:
|
||||
m_ObjectHideFlags: 0
|
||||
|
@ -5068,6 +5084,12 @@ PrefabInstance:
|
|||
objectReference: {fileID: 0}
|
||||
m_RemovedComponents: []
|
||||
m_SourcePrefab: {fileID: 100100000, guid: 088baeb890d17754287a1161c0b1dceb, type: 3}
|
||||
--- !u!4 &8841683408495298877 stripped
|
||||
Transform:
|
||||
m_CorrespondingSourceObject: {fileID: 7985558213978141208, guid: 088baeb890d17754287a1161c0b1dceb,
|
||||
type: 3}
|
||||
m_PrefabInstance: {fileID: 1468629587382336293}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!114 &663871054226612824 stripped
|
||||
MonoBehaviour:
|
||||
m_CorrespondingSourceObject: {fileID: 2114182605201611133, guid: 088baeb890d17754287a1161c0b1dceb,
|
||||
|
@ -5080,12 +5102,6 @@ MonoBehaviour:
|
|||
m_Script: {fileID: 11500000, guid: 8d11073938bcdd54589608b4b411b889, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
--- !u!4 &8841683408495298877 stripped
|
||||
Transform:
|
||||
m_CorrespondingSourceObject: {fileID: 7985558213978141208, guid: 088baeb890d17754287a1161c0b1dceb,
|
||||
type: 3}
|
||||
m_PrefabInstance: {fileID: 1468629587382336293}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!1 &8841683408495298876 stripped
|
||||
GameObject:
|
||||
m_CorrespondingSourceObject: {fileID: 7985558213978141209, guid: 088baeb890d17754287a1161c0b1dceb,
|
||||
|
@ -6814,12 +6830,6 @@ PrefabInstance:
|
|||
objectReference: {fileID: 0}
|
||||
m_RemovedComponents: []
|
||||
m_SourcePrefab: {fileID: 100100000, guid: 088baeb890d17754287a1161c0b1dceb, type: 3}
|
||||
--- !u!1 &8539805826321748421 stripped
|
||||
GameObject:
|
||||
m_CorrespondingSourceObject: {fileID: 7985558213978141209, guid: 088baeb890d17754287a1161c0b1dceb,
|
||||
type: 3}
|
||||
m_PrefabInstance: {fileID: 1752211167157593052}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!114 &361993472053131937 stripped
|
||||
MonoBehaviour:
|
||||
m_CorrespondingSourceObject: {fileID: 2114182605201611133, guid: 088baeb890d17754287a1161c0b1dceb,
|
||||
|
@ -6832,6 +6842,12 @@ MonoBehaviour:
|
|||
m_Script: {fileID: 11500000, guid: 8d11073938bcdd54589608b4b411b889, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
--- !u!1 &8539805826321748421 stripped
|
||||
GameObject:
|
||||
m_CorrespondingSourceObject: {fileID: 7985558213978141209, guid: 088baeb890d17754287a1161c0b1dceb,
|
||||
type: 3}
|
||||
m_PrefabInstance: {fileID: 1752211167157593052}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!4 &8539805826321748420 stripped
|
||||
Transform:
|
||||
m_CorrespondingSourceObject: {fileID: 7985558213978141208, guid: 088baeb890d17754287a1161c0b1dceb,
|
||||
|
@ -7687,6 +7703,18 @@ PrefabInstance:
|
|||
objectReference: {fileID: 0}
|
||||
m_RemovedComponents: []
|
||||
m_SourcePrefab: {fileID: 100100000, guid: 088baeb890d17754287a1161c0b1dceb, type: 3}
|
||||
--- !u!1 &8520896806561604224 stripped
|
||||
GameObject:
|
||||
m_CorrespondingSourceObject: {fileID: 7985558213978141209, guid: 088baeb890d17754287a1161c0b1dceb,
|
||||
type: 3}
|
||||
m_PrefabInstance: {fileID: 1770522258813735065}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!4 &8520896806561604225 stripped
|
||||
Transform:
|
||||
m_CorrespondingSourceObject: {fileID: 7985558213978141208, guid: 088baeb890d17754287a1161c0b1dceb,
|
||||
type: 3}
|
||||
m_PrefabInstance: {fileID: 1770522258813735065}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!114 &415806151353551332 stripped
|
||||
MonoBehaviour:
|
||||
m_CorrespondingSourceObject: {fileID: 2114182605201611133, guid: 088baeb890d17754287a1161c0b1dceb,
|
||||
|
@ -7699,18 +7727,6 @@ MonoBehaviour:
|
|||
m_Script: {fileID: 11500000, guid: 8d11073938bcdd54589608b4b411b889, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
--- !u!4 &8520896806561604225 stripped
|
||||
Transform:
|
||||
m_CorrespondingSourceObject: {fileID: 7985558213978141208, guid: 088baeb890d17754287a1161c0b1dceb,
|
||||
type: 3}
|
||||
m_PrefabInstance: {fileID: 1770522258813735065}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!1 &8520896806561604224 stripped
|
||||
GameObject:
|
||||
m_CorrespondingSourceObject: {fileID: 7985558213978141209, guid: 088baeb890d17754287a1161c0b1dceb,
|
||||
type: 3}
|
||||
m_PrefabInstance: {fileID: 1770522258813735065}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!1001 &1952625762317888975
|
||||
PrefabInstance:
|
||||
m_ObjectHideFlags: 0
|
||||
|
@ -9445,18 +9461,18 @@ MonoBehaviour:
|
|||
m_Script: {fileID: 11500000, guid: 8d11073938bcdd54589608b4b411b889, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
--- !u!1 &8348451640861860601 stripped
|
||||
GameObject:
|
||||
m_CorrespondingSourceObject: {fileID: 7985558213978141209, guid: 088baeb890d17754287a1161c0b1dceb,
|
||||
type: 3}
|
||||
m_PrefabInstance: {fileID: 2092430464794464480}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!4 &8348451640861860600 stripped
|
||||
Transform:
|
||||
m_CorrespondingSourceObject: {fileID: 7985558213978141208, guid: 088baeb890d17754287a1161c0b1dceb,
|
||||
type: 3}
|
||||
m_PrefabInstance: {fileID: 2092430464794464480}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!1 &8348451640861860601 stripped
|
||||
GameObject:
|
||||
m_CorrespondingSourceObject: {fileID: 7985558213978141209, guid: 088baeb890d17754287a1161c0b1dceb,
|
||||
type: 3}
|
||||
m_PrefabInstance: {fileID: 2092430464794464480}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!1001 &2303540555920778128
|
||||
PrefabInstance:
|
||||
m_ObjectHideFlags: 0
|
||||
|
@ -10306,18 +10322,6 @@ PrefabInstance:
|
|||
objectReference: {fileID: 0}
|
||||
m_RemovedComponents: []
|
||||
m_SourcePrefab: {fileID: 100100000, guid: 088baeb890d17754287a1161c0b1dceb, type: 3}
|
||||
--- !u!1 &8153123965611774345 stripped
|
||||
GameObject:
|
||||
m_CorrespondingSourceObject: {fileID: 7985558213978141209, guid: 088baeb890d17754287a1161c0b1dceb,
|
||||
type: 3}
|
||||
m_PrefabInstance: {fileID: 2303540555920778128}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!4 &8153123965611774344 stripped
|
||||
Transform:
|
||||
m_CorrespondingSourceObject: {fileID: 7985558213978141208, guid: 088baeb890d17754287a1161c0b1dceb,
|
||||
type: 3}
|
||||
m_PrefabInstance: {fileID: 2303540555920778128}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!114 &189366751241648877 stripped
|
||||
MonoBehaviour:
|
||||
m_CorrespondingSourceObject: {fileID: 2114182605201611133, guid: 088baeb890d17754287a1161c0b1dceb,
|
||||
|
@ -10330,6 +10334,18 @@ MonoBehaviour:
|
|||
m_Script: {fileID: 11500000, guid: 8d11073938bcdd54589608b4b411b889, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
--- !u!1 &8153123965611774345 stripped
|
||||
GameObject:
|
||||
m_CorrespondingSourceObject: {fileID: 7985558213978141209, guid: 088baeb890d17754287a1161c0b1dceb,
|
||||
type: 3}
|
||||
m_PrefabInstance: {fileID: 2303540555920778128}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!4 &8153123965611774344 stripped
|
||||
Transform:
|
||||
m_CorrespondingSourceObject: {fileID: 7985558213978141208, guid: 088baeb890d17754287a1161c0b1dceb,
|
||||
type: 3}
|
||||
m_PrefabInstance: {fileID: 2303540555920778128}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!1001 &2498570764477447715
|
||||
PrefabInstance:
|
||||
m_ObjectHideFlags: 0
|
||||
|
@ -12925,6 +12941,18 @@ PrefabInstance:
|
|||
objectReference: {fileID: 0}
|
||||
m_RemovedComponents: []
|
||||
m_SourcePrefab: {fileID: 100100000, guid: 088baeb890d17754287a1161c0b1dceb, type: 3}
|
||||
--- !u!1 &5167349154997552049 stripped
|
||||
GameObject:
|
||||
m_CorrespondingSourceObject: {fileID: 7985558213978141209, guid: 088baeb890d17754287a1161c0b1dceb,
|
||||
type: 3}
|
||||
m_PrefabInstance: {fileID: 2982643334479475112}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!4 &5167349154997552048 stripped
|
||||
Transform:
|
||||
m_CorrespondingSourceObject: {fileID: 7985558213978141208, guid: 088baeb890d17754287a1161c0b1dceb,
|
||||
type: 3}
|
||||
m_PrefabInstance: {fileID: 2982643334479475112}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!114 &3761472913846298837 stripped
|
||||
MonoBehaviour:
|
||||
m_CorrespondingSourceObject: {fileID: 2114182605201611133, guid: 088baeb890d17754287a1161c0b1dceb,
|
||||
|
@ -12937,18 +12965,6 @@ MonoBehaviour:
|
|||
m_Script: {fileID: 11500000, guid: 8d11073938bcdd54589608b4b411b889, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
--- !u!4 &5167349154997552048 stripped
|
||||
Transform:
|
||||
m_CorrespondingSourceObject: {fileID: 7985558213978141208, guid: 088baeb890d17754287a1161c0b1dceb,
|
||||
type: 3}
|
||||
m_PrefabInstance: {fileID: 2982643334479475112}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!1 &5167349154997552049 stripped
|
||||
GameObject:
|
||||
m_CorrespondingSourceObject: {fileID: 7985558213978141209, guid: 088baeb890d17754287a1161c0b1dceb,
|
||||
type: 3}
|
||||
m_PrefabInstance: {fileID: 2982643334479475112}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!1001 &3048292988923725988
|
||||
PrefabInstance:
|
||||
m_ObjectHideFlags: 0
|
||||
|
@ -13804,6 +13820,12 @@ GameObject:
|
|||
type: 3}
|
||||
m_PrefabInstance: {fileID: 3048292988923725988}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!4 &4944900371505117884 stripped
|
||||
Transform:
|
||||
m_CorrespondingSourceObject: {fileID: 7985558213978141208, guid: 088baeb890d17754287a1161c0b1dceb,
|
||||
type: 3}
|
||||
m_PrefabInstance: {fileID: 3048292988923725988}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!114 &3970666008213377497 stripped
|
||||
MonoBehaviour:
|
||||
m_CorrespondingSourceObject: {fileID: 2114182605201611133, guid: 088baeb890d17754287a1161c0b1dceb,
|
||||
|
@ -13816,12 +13838,6 @@ MonoBehaviour:
|
|||
m_Script: {fileID: 11500000, guid: 8d11073938bcdd54589608b4b411b889, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
--- !u!4 &4944900371505117884 stripped
|
||||
Transform:
|
||||
m_CorrespondingSourceObject: {fileID: 7985558213978141208, guid: 088baeb890d17754287a1161c0b1dceb,
|
||||
type: 3}
|
||||
m_PrefabInstance: {fileID: 3048292988923725988}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!1001 &3662279832116246199
|
||||
PrefabInstance:
|
||||
m_ObjectHideFlags: 0
|
||||
|
@ -14671,12 +14687,6 @@ PrefabInstance:
|
|||
objectReference: {fileID: 0}
|
||||
m_RemovedComponents: []
|
||||
m_SourcePrefab: {fileID: 100100000, guid: 088baeb890d17754287a1161c0b1dceb, type: 3}
|
||||
--- !u!4 &6629702139642053807 stripped
|
||||
Transform:
|
||||
m_CorrespondingSourceObject: {fileID: 7985558213978141208, guid: 088baeb890d17754287a1161c0b1dceb,
|
||||
type: 3}
|
||||
m_PrefabInstance: {fileID: 3662279832116246199}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!114 &3423894577495912394 stripped
|
||||
MonoBehaviour:
|
||||
m_CorrespondingSourceObject: {fileID: 2114182605201611133, guid: 088baeb890d17754287a1161c0b1dceb,
|
||||
|
@ -14689,6 +14699,12 @@ MonoBehaviour:
|
|||
m_Script: {fileID: 11500000, guid: 8d11073938bcdd54589608b4b411b889, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
--- !u!4 &6629702139642053807 stripped
|
||||
Transform:
|
||||
m_CorrespondingSourceObject: {fileID: 7985558213978141208, guid: 088baeb890d17754287a1161c0b1dceb,
|
||||
type: 3}
|
||||
m_PrefabInstance: {fileID: 3662279832116246199}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!1 &6629702139642053806 stripped
|
||||
GameObject:
|
||||
m_CorrespondingSourceObject: {fileID: 7985558213978141209, guid: 088baeb890d17754287a1161c0b1dceb,
|
||||
|
@ -15544,18 +15560,6 @@ PrefabInstance:
|
|||
objectReference: {fileID: 0}
|
||||
m_RemovedComponents: []
|
||||
m_SourcePrefab: {fileID: 100100000, guid: 088baeb890d17754287a1161c0b1dceb, type: 3}
|
||||
--- !u!4 &6331659836092723443 stripped
|
||||
Transform:
|
||||
m_CorrespondingSourceObject: {fileID: 7985558213978141208, guid: 088baeb890d17754287a1161c0b1dceb,
|
||||
type: 3}
|
||||
m_PrefabInstance: {fileID: 4110930979306373867}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!1 &6331659836092723442 stripped
|
||||
GameObject:
|
||||
m_CorrespondingSourceObject: {fileID: 7985558213978141209, guid: 088baeb890d17754287a1161c0b1dceb,
|
||||
type: 3}
|
||||
m_PrefabInstance: {fileID: 4110930979306373867}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!114 &2619933972551867286 stripped
|
||||
MonoBehaviour:
|
||||
m_CorrespondingSourceObject: {fileID: 2114182605201611133, guid: 088baeb890d17754287a1161c0b1dceb,
|
||||
|
@ -15568,6 +15572,18 @@ MonoBehaviour:
|
|||
m_Script: {fileID: 11500000, guid: 8d11073938bcdd54589608b4b411b889, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
--- !u!4 &6331659836092723443 stripped
|
||||
Transform:
|
||||
m_CorrespondingSourceObject: {fileID: 7985558213978141208, guid: 088baeb890d17754287a1161c0b1dceb,
|
||||
type: 3}
|
||||
m_PrefabInstance: {fileID: 4110930979306373867}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!1 &6331659836092723442 stripped
|
||||
GameObject:
|
||||
m_CorrespondingSourceObject: {fileID: 7985558213978141209, guid: 088baeb890d17754287a1161c0b1dceb,
|
||||
type: 3}
|
||||
m_PrefabInstance: {fileID: 4110930979306373867}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!1001 &4880875880639175748
|
||||
PrefabInstance:
|
||||
m_ObjectHideFlags: 0
|
||||
|
@ -17290,12 +17306,6 @@ PrefabInstance:
|
|||
objectReference: {fileID: 0}
|
||||
m_RemovedComponents: []
|
||||
m_SourcePrefab: {fileID: 100100000, guid: 088baeb890d17754287a1161c0b1dceb, type: 3}
|
||||
--- !u!4 &2499279008215596091 stripped
|
||||
Transform:
|
||||
m_CorrespondingSourceObject: {fileID: 7985558213978141208, guid: 088baeb890d17754287a1161c0b1dceb,
|
||||
type: 3}
|
||||
m_PrefabInstance: {fileID: 5511666963674910243}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!114 &5848568455846123358 stripped
|
||||
MonoBehaviour:
|
||||
m_CorrespondingSourceObject: {fileID: 2114182605201611133, guid: 088baeb890d17754287a1161c0b1dceb,
|
||||
|
@ -17308,6 +17318,12 @@ MonoBehaviour:
|
|||
m_Script: {fileID: 11500000, guid: 8d11073938bcdd54589608b4b411b889, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
--- !u!4 &2499279008215596091 stripped
|
||||
Transform:
|
||||
m_CorrespondingSourceObject: {fileID: 7985558213978141208, guid: 088baeb890d17754287a1161c0b1dceb,
|
||||
type: 3}
|
||||
m_PrefabInstance: {fileID: 5511666963674910243}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!1 &2499279008215596090 stripped
|
||||
GameObject:
|
||||
m_CorrespondingSourceObject: {fileID: 7985558213978141209, guid: 088baeb890d17754287a1161c0b1dceb,
|
||||
|
@ -18163,6 +18179,18 @@ PrefabInstance:
|
|||
objectReference: {fileID: 0}
|
||||
m_RemovedComponents: []
|
||||
m_SourcePrefab: {fileID: 100100000, guid: 088baeb890d17754287a1161c0b1dceb, type: 3}
|
||||
--- !u!4 &2482403066424627202 stripped
|
||||
Transform:
|
||||
m_CorrespondingSourceObject: {fileID: 7985558213978141208, guid: 088baeb890d17754287a1161c0b1dceb,
|
||||
type: 3}
|
||||
m_PrefabInstance: {fileID: 5521732607769453082}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!1 &2482403066424627203 stripped
|
||||
GameObject:
|
||||
m_CorrespondingSourceObject: {fileID: 7985558213978141209, guid: 088baeb890d17754287a1161c0b1dceb,
|
||||
type: 3}
|
||||
m_PrefabInstance: {fileID: 5521732607769453082}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!114 &5905968906451827559 stripped
|
||||
MonoBehaviour:
|
||||
m_CorrespondingSourceObject: {fileID: 2114182605201611133, guid: 088baeb890d17754287a1161c0b1dceb,
|
||||
|
@ -18175,18 +18203,6 @@ MonoBehaviour:
|
|||
m_Script: {fileID: 11500000, guid: 8d11073938bcdd54589608b4b411b889, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
--- !u!1 &2482403066424627203 stripped
|
||||
GameObject:
|
||||
m_CorrespondingSourceObject: {fileID: 7985558213978141209, guid: 088baeb890d17754287a1161c0b1dceb,
|
||||
type: 3}
|
||||
m_PrefabInstance: {fileID: 5521732607769453082}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!4 &2482403066424627202 stripped
|
||||
Transform:
|
||||
m_CorrespondingSourceObject: {fileID: 7985558213978141208, guid: 088baeb890d17754287a1161c0b1dceb,
|
||||
type: 3}
|
||||
m_PrefabInstance: {fileID: 5521732607769453082}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!1001 &5554079564960066622
|
||||
PrefabInstance:
|
||||
m_ObjectHideFlags: 0
|
||||
|
@ -19036,18 +19052,6 @@ PrefabInstance:
|
|||
objectReference: {fileID: 0}
|
||||
m_RemovedComponents: []
|
||||
m_SourcePrefab: {fileID: 100100000, guid: 088baeb890d17754287a1161c0b1dceb, type: 3}
|
||||
--- !u!1 &2577865565644119591 stripped
|
||||
GameObject:
|
||||
m_CorrespondingSourceObject: {fileID: 7985558213978141209, guid: 088baeb890d17754287a1161c0b1dceb,
|
||||
type: 3}
|
||||
m_PrefabInstance: {fileID: 5554079564960066622}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!4 &2577865565644119590 stripped
|
||||
Transform:
|
||||
m_CorrespondingSourceObject: {fileID: 7985558213978141208, guid: 088baeb890d17754287a1161c0b1dceb,
|
||||
type: 3}
|
||||
m_PrefabInstance: {fileID: 5554079564960066622}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!114 &5783492806809580867 stripped
|
||||
MonoBehaviour:
|
||||
m_CorrespondingSourceObject: {fileID: 2114182605201611133, guid: 088baeb890d17754287a1161c0b1dceb,
|
||||
|
@ -19060,6 +19064,18 @@ MonoBehaviour:
|
|||
m_Script: {fileID: 11500000, guid: 8d11073938bcdd54589608b4b411b889, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
--- !u!1 &2577865565644119591 stripped
|
||||
GameObject:
|
||||
m_CorrespondingSourceObject: {fileID: 7985558213978141209, guid: 088baeb890d17754287a1161c0b1dceb,
|
||||
type: 3}
|
||||
m_PrefabInstance: {fileID: 5554079564960066622}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!4 &2577865565644119590 stripped
|
||||
Transform:
|
||||
m_CorrespondingSourceObject: {fileID: 7985558213978141208, guid: 088baeb890d17754287a1161c0b1dceb,
|
||||
type: 3}
|
||||
m_PrefabInstance: {fileID: 5554079564960066622}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!1001 &6233801842401300491
|
||||
PrefabInstance:
|
||||
m_ObjectHideFlags: 0
|
||||
|
@ -21655,12 +21671,6 @@ PrefabInstance:
|
|||
objectReference: {fileID: 0}
|
||||
m_RemovedComponents: []
|
||||
m_SourcePrefab: {fileID: 100100000, guid: 088baeb890d17754287a1161c0b1dceb, type: 3}
|
||||
--- !u!1 &3778991970646513775 stripped
|
||||
GameObject:
|
||||
m_CorrespondingSourceObject: {fileID: 7985558213978141209, guid: 088baeb890d17754287a1161c0b1dceb,
|
||||
type: 3}
|
||||
m_PrefabInstance: {fileID: 6531287970344790646}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!114 &5185013363439366923 stripped
|
||||
MonoBehaviour:
|
||||
m_CorrespondingSourceObject: {fileID: 2114182605201611133, guid: 088baeb890d17754287a1161c0b1dceb,
|
||||
|
@ -21673,6 +21683,12 @@ MonoBehaviour:
|
|||
m_Script: {fileID: 11500000, guid: 8d11073938bcdd54589608b4b411b889, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
--- !u!1 &3778991970646513775 stripped
|
||||
GameObject:
|
||||
m_CorrespondingSourceObject: {fileID: 7985558213978141209, guid: 088baeb890d17754287a1161c0b1dceb,
|
||||
type: 3}
|
||||
m_PrefabInstance: {fileID: 6531287970344790646}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!4 &3778991970646513774 stripped
|
||||
Transform:
|
||||
m_CorrespondingSourceObject: {fileID: 7985558213978141208, guid: 088baeb890d17754287a1161c0b1dceb,
|
||||
|
@ -22528,18 +22544,6 @@ PrefabInstance:
|
|||
objectReference: {fileID: 0}
|
||||
m_RemovedComponents: []
|
||||
m_SourcePrefab: {fileID: 100100000, guid: 088baeb890d17754287a1161c0b1dceb, type: 3}
|
||||
--- !u!1 &768107848365297197 stripped
|
||||
GameObject:
|
||||
m_CorrespondingSourceObject: {fileID: 7985558213978141209, guid: 088baeb890d17754287a1161c0b1dceb,
|
||||
type: 3}
|
||||
m_PrefabInstance: {fileID: 7240302650516732980}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!4 &768107848365297196 stripped
|
||||
Transform:
|
||||
m_CorrespondingSourceObject: {fileID: 7985558213978141208, guid: 088baeb890d17754287a1161c0b1dceb,
|
||||
type: 3}
|
||||
m_PrefabInstance: {fileID: 7240302650516732980}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!114 &8731825496423425353 stripped
|
||||
MonoBehaviour:
|
||||
m_CorrespondingSourceObject: {fileID: 2114182605201611133, guid: 088baeb890d17754287a1161c0b1dceb,
|
||||
|
@ -22552,6 +22556,18 @@ MonoBehaviour:
|
|||
m_Script: {fileID: 11500000, guid: 8d11073938bcdd54589608b4b411b889, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
--- !u!4 &768107848365297196 stripped
|
||||
Transform:
|
||||
m_CorrespondingSourceObject: {fileID: 7985558213978141208, guid: 088baeb890d17754287a1161c0b1dceb,
|
||||
type: 3}
|
||||
m_PrefabInstance: {fileID: 7240302650516732980}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!1 &768107848365297197 stripped
|
||||
GameObject:
|
||||
m_CorrespondingSourceObject: {fileID: 7985558213978141209, guid: 088baeb890d17754287a1161c0b1dceb,
|
||||
type: 3}
|
||||
m_PrefabInstance: {fileID: 7240302650516732980}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!1001 &7437457271094913390
|
||||
PrefabInstance:
|
||||
m_ObjectHideFlags: 0
|
||||
|
@ -23401,18 +23417,18 @@ PrefabInstance:
|
|||
objectReference: {fileID: 0}
|
||||
m_RemovedComponents: []
|
||||
m_SourcePrefab: {fileID: 100100000, guid: 088baeb890d17754287a1161c0b1dceb, type: 3}
|
||||
--- !u!4 &713047693628054390 stripped
|
||||
Transform:
|
||||
m_CorrespondingSourceObject: {fileID: 7985558213978141208, guid: 088baeb890d17754287a1161c0b1dceb,
|
||||
type: 3}
|
||||
m_PrefabInstance: {fileID: 7437457271094913390}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!1 &713047693628054391 stripped
|
||||
GameObject:
|
||||
m_CorrespondingSourceObject: {fileID: 7985558213978141209, guid: 088baeb890d17754287a1161c0b1dceb,
|
||||
type: 3}
|
||||
m_PrefabInstance: {fileID: 7437457271094913390}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!4 &713047693628054390 stripped
|
||||
Transform:
|
||||
m_CorrespondingSourceObject: {fileID: 7985558213978141208, guid: 088baeb890d17754287a1161c0b1dceb,
|
||||
type: 3}
|
||||
m_PrefabInstance: {fileID: 7437457271094913390}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!114 &8818103163389751315 stripped
|
||||
MonoBehaviour:
|
||||
m_CorrespondingSourceObject: {fileID: 2114182605201611133, guid: 088baeb890d17754287a1161c0b1dceb,
|
||||
|
@ -24274,18 +24290,18 @@ PrefabInstance:
|
|||
objectReference: {fileID: 0}
|
||||
m_RemovedComponents: []
|
||||
m_SourcePrefab: {fileID: 100100000, guid: 088baeb890d17754287a1161c0b1dceb, type: 3}
|
||||
--- !u!4 &1872830556030293328 stripped
|
||||
Transform:
|
||||
m_CorrespondingSourceObject: {fileID: 7985558213978141208, guid: 088baeb890d17754287a1161c0b1dceb,
|
||||
type: 3}
|
||||
m_PrefabInstance: {fileID: 8588302458087827272}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!1 &1872830556030293329 stripped
|
||||
GameObject:
|
||||
m_CorrespondingSourceObject: {fileID: 7985558213978141209, guid: 088baeb890d17754287a1161c0b1dceb,
|
||||
type: 3}
|
||||
m_PrefabInstance: {fileID: 8588302458087827272}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!4 &1872830556030293328 stripped
|
||||
Transform:
|
||||
m_CorrespondingSourceObject: {fileID: 7985558213978141208, guid: 088baeb890d17754287a1161c0b1dceb,
|
||||
type: 3}
|
||||
m_PrefabInstance: {fileID: 8588302458087827272}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!114 &7672113369216351797 stripped
|
||||
MonoBehaviour:
|
||||
m_CorrespondingSourceObject: {fileID: 2114182605201611133, guid: 088baeb890d17754287a1161c0b1dceb,
|
||||
|
@ -25147,18 +25163,6 @@ PrefabInstance:
|
|||
objectReference: {fileID: 0}
|
||||
m_RemovedComponents: []
|
||||
m_SourcePrefab: {fileID: 100100000, guid: 088baeb890d17754287a1161c0b1dceb, type: 3}
|
||||
--- !u!4 &1611324478266105742 stripped
|
||||
Transform:
|
||||
m_CorrespondingSourceObject: {fileID: 7985558213978141208, guid: 088baeb890d17754287a1161c0b1dceb,
|
||||
type: 3}
|
||||
m_PrefabInstance: {fileID: 8687151149057306006}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!1 &1611324478266105743 stripped
|
||||
GameObject:
|
||||
m_CorrespondingSourceObject: {fileID: 7985558213978141209, guid: 088baeb890d17754287a1161c0b1dceb,
|
||||
type: 3}
|
||||
m_PrefabInstance: {fileID: 8687151149057306006}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!114 &7339143432620078315 stripped
|
||||
MonoBehaviour:
|
||||
m_CorrespondingSourceObject: {fileID: 2114182605201611133, guid: 088baeb890d17754287a1161c0b1dceb,
|
||||
|
@ -25171,6 +25175,18 @@ MonoBehaviour:
|
|||
m_Script: {fileID: 11500000, guid: 8d11073938bcdd54589608b4b411b889, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
--- !u!4 &1611324478266105742 stripped
|
||||
Transform:
|
||||
m_CorrespondingSourceObject: {fileID: 7985558213978141208, guid: 088baeb890d17754287a1161c0b1dceb,
|
||||
type: 3}
|
||||
m_PrefabInstance: {fileID: 8687151149057306006}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!1 &1611324478266105743 stripped
|
||||
GameObject:
|
||||
m_CorrespondingSourceObject: {fileID: 7985558213978141209, guid: 088baeb890d17754287a1161c0b1dceb,
|
||||
type: 3}
|
||||
m_PrefabInstance: {fileID: 8687151149057306006}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!1001 &8867769748213934429
|
||||
PrefabInstance:
|
||||
m_ObjectHideFlags: 0
|
||||
|
@ -26020,6 +26036,12 @@ PrefabInstance:
|
|||
objectReference: {fileID: 0}
|
||||
m_RemovedComponents: []
|
||||
m_SourcePrefab: {fileID: 100100000, guid: 088baeb890d17754287a1161c0b1dceb, type: 3}
|
||||
--- !u!1 &1568030543216483140 stripped
|
||||
GameObject:
|
||||
m_CorrespondingSourceObject: {fileID: 7985558213978141209, guid: 088baeb890d17754287a1161c0b1dceb,
|
||||
type: 3}
|
||||
m_PrefabInstance: {fileID: 8867769748213934429}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!4 &1568030543216483141 stripped
|
||||
Transform:
|
||||
m_CorrespondingSourceObject: {fileID: 7985558213978141208, guid: 088baeb890d17754287a1161c0b1dceb,
|
||||
|
@ -26038,12 +26060,6 @@ MonoBehaviour:
|
|||
m_Script: {fileID: 11500000, guid: 8d11073938bcdd54589608b4b411b889, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
--- !u!1 &1568030543216483140 stripped
|
||||
GameObject:
|
||||
m_CorrespondingSourceObject: {fileID: 7985558213978141209, guid: 088baeb890d17754287a1161c0b1dceb,
|
||||
type: 3}
|
||||
m_PrefabInstance: {fileID: 8867769748213934429}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!1001 &8887797578038627791
|
||||
PrefabInstance:
|
||||
m_ObjectHideFlags: 0
|
||||
|
|
|
@ -9912,6 +9912,7 @@ GameObject:
|
|||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 7615181139496386328}
|
||||
- component: {fileID: 7813639671686261989}
|
||||
- component: {fileID: 7615181139496386334}
|
||||
- component: {fileID: 7615181139496386333}
|
||||
- component: {fileID: 7615181139496386332}
|
||||
|
@ -9940,6 +9941,19 @@ Transform:
|
|||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 90, z: 0}
|
||||
--- !u!114 &7813639671686261989
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 7615181139496386322}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 0afac659d8be281448f9ecd22f828b72, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
equipmentType: "\u6FC0\u5149\u706B\u63A7\u5E73\u53F0"
|
||||
--- !u!65 &7615181139496386334
|
||||
BoxCollider:
|
||||
m_ObjectHideFlags: 0
|
||||
|
@ -9978,7 +9992,7 @@ MonoBehaviour:
|
|||
m_Script: {fileID: 11500000, guid: 454a4db18ba8e38409491fa714240ae3, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
isStartRehearsing: 0
|
||||
interval: 5
|
||||
msg: "{ \"state\":true, \"message\":\"\", \"data\":[ {
|
||||
\"id\":\"1700269137180001\", \"think_device_id\":\"1700269136819004\",
|
||||
\"para_name\":\"\u50A8\u80FD\u95F4\u9694\u65F6\u95F4\uFF1A\", \"para_type\":\"\",
|
||||
|
|
|
@ -8361,6 +8361,19 @@ MonoBehaviour:
|
|||
m_Script: {fileID: 11500000, guid: 8d11073938bcdd54589608b4b411b889, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
unmannedAerialVehicleManage: {fileID: 0}
|
||||
batteryLife:
|
||||
classificationWindResistance:
|
||||
maximumFlyingSpeed:
|
||||
RCS:
|
||||
satellitePositioningFrequency:
|
||||
dataLinkCommunicationFrequency:
|
||||
electronicReconnaissanceCapability:
|
||||
opticalReconnaissanceCapability:
|
||||
FireSpeed: 20
|
||||
detectionRadius: 50
|
||||
explodePrefab: {fileID: 1000013462590818, guid: ecdd96beb7f93494880c052dfccf9dc1,
|
||||
type: 3}
|
||||
--- !u!65 &6107446376952425967
|
||||
BoxCollider:
|
||||
m_ObjectHideFlags: 0
|
||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -0,0 +1,7 @@
|
|||
fileFormatVersion: 2
|
||||
guid: ee27618d165767643bee2f53e7fbff72
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -1,4 +1,4 @@
|
|||
using AdamThinkDevicesData;
|
||||
using AdamThinkDevicesData;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
@ -38,10 +38,10 @@ public class DragController : MonoBehaviour, IBeginDragHandler, IEndDragHandler,
|
|||
if (model != null)
|
||||
{
|
||||
|
||||
model.GetComponent<UnmannedAerialVehicleManage>().isStartRehearsing = GlobalFlag.isStartRehearsing;
|
||||
model.GetComponent<EquipmentCommon>().isStartRehearsing = GlobalFlag.isStartRehearsing;
|
||||
List<List_paraItem> temp = UIBootstrap.Instance.GetListParaItemById(deviceID);
|
||||
|
||||
//model.GetComponent<UnmannedAerialVehicleManage>().FillInTheData(temp);
|
||||
model.GetComponent<EquipmentCommon>().FillInTheData(temp);
|
||||
if (DragManager.Instance != null)
|
||||
{
|
||||
DragManager.Instance.AddObj(model);//把对应模型传入链表
|
||||
|
|
|
@ -12,11 +12,8 @@ public class ObjectPlanner : MonoBehaviour
|
|||
public GameObject selectedObject; // 被选择的物体
|
||||
public LineRenderer lineRenderer; // 用于绘制路线的线条
|
||||
private bool isPlanning = false; // 是否正在规划路线
|
||||
public Vector3[] positions;//已有路径
|
||||
/// <summary>
|
||||
/// 飞行速度
|
||||
/// </summary>
|
||||
public float FireSpeed = 20.0f;
|
||||
public UnmannedAerialVehicleManage unmannedAerialVehicleManage;
|
||||
|
||||
void Start()
|
||||
{
|
||||
if (camera == null)
|
||||
|
@ -63,9 +60,16 @@ public class ObjectPlanner : MonoBehaviour
|
|||
{
|
||||
isPlanning = false; // 停止规划路线
|
||||
|
||||
positions = new Vector3[lineRenderer.positionCount]; // 创建用于存储顶点坐标的数组
|
||||
Vector3[] positions = new Vector3[lineRenderer.positionCount]; // 创建用于存储顶点坐标的数组
|
||||
lineRenderer.GetPositions(positions); // 获取线条的顶点坐标
|
||||
|
||||
if (unmannedAerialVehicleManage)
|
||||
{
|
||||
for (int i = 0; i < positions.Length; i++)
|
||||
{
|
||||
unmannedAerialVehicleManage.positions.Enqueue(positions[i]);
|
||||
unmannedAerialVehicleManage.endPosition = positions[positions.Length - 1];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -80,28 +84,5 @@ public class ObjectPlanner : MonoBehaviour
|
|||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 按规划路径开始移动
|
||||
/// </summary>
|
||||
public void StartMoveObjectAlongPath()
|
||||
{
|
||||
if (positions.Length > 0)
|
||||
{
|
||||
StartCoroutine(MoveObjectAlongPath(positions)); // 启动协程,按规划的路线移动物体
|
||||
}
|
||||
}
|
||||
|
||||
IEnumerator MoveObjectAlongPath(Vector3[] positions) // 协程:按路线移动物体
|
||||
{
|
||||
for (int i = 0; i < positions.Length; i++) // 迭代线条的顶点坐标
|
||||
{
|
||||
Vector3 targetPosition = positions[i] + new Vector3(0, 10, 0);// 目标位置为当前顶点坐标
|
||||
while (selectedObject.transform.position != targetPosition) // 当物体未到达目标位置时
|
||||
{
|
||||
selectedObject.transform.position = Vector3.MoveTowards(selectedObject.transform.position, targetPosition, Time.deltaTime * FireSpeed); // 平滑移动物体
|
||||
yield return null; // 等待一帧时间
|
||||
}
|
||||
yield return null; // 等待一帧时间
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -0,0 +1,97 @@
|
|||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using AdamThinkDevicesData;
|
||||
|
||||
/// <summary>
|
||||
/// 设备
|
||||
/// </summary>
|
||||
public class EquipmentCommon : MonoBehaviour
|
||||
{
|
||||
public static List<EquipmentCommon> equipmentCommons = new List<EquipmentCommon>();
|
||||
public string equipmentType="";
|
||||
private bool _isStartRehearsing = false;
|
||||
|
||||
// 布尔值变化时触发的事件
|
||||
public event System.Action<bool> OnActivationChanged;
|
||||
|
||||
// 属性绑定布尔值,并在值变化时触发事件
|
||||
public bool isStartRehearsing
|
||||
{
|
||||
get { return _isStartRehearsing; }
|
||||
set
|
||||
{
|
||||
if (_isStartRehearsing != value)
|
||||
{
|
||||
_isStartRehearsing = value;
|
||||
OnActivationChanged?.Invoke(_isStartRehearsing);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void Start()
|
||||
{
|
||||
equipmentCommons.Add(this);
|
||||
// 订阅布尔值变化事件
|
||||
OnActivationChanged += OnActivationChangedHandler;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
/// <param name="newValue"></param>
|
||||
void OnActivationChangedHandler(bool newValue)
|
||||
{
|
||||
switch (equipmentType)
|
||||
{
|
||||
case "激光火控平台":
|
||||
LaserFireControlPlatformManger laserFireControlPlatformManger = GetComponent<LaserFireControlPlatformManger>();
|
||||
laserFireControlPlatformManger.isStartRehearsing = isStartRehearsing;
|
||||
break;
|
||||
case "探测雷达":
|
||||
RadarManger radarManger = GetComponent<RadarManger>();
|
||||
radarManger.isStartRehearsing = isStartRehearsing;
|
||||
break;
|
||||
case "地面无线电干扰":
|
||||
TerrestrialRadioInterferenceManger terrestrialRadioInterferenceManger = GetComponent<TerrestrialRadioInterferenceManger>();
|
||||
terrestrialRadioInterferenceManger.isStartRehearsing = isStartRehearsing;
|
||||
break;
|
||||
case "无人机List":
|
||||
UnmannedAerialVehicleManage unmannedAerialVehicleManage = GetComponent<UnmannedAerialVehicleManage>();
|
||||
unmannedAerialVehicleManage.isStartRehearsing = isStartRehearsing;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
/// <param name="weaponitemone"></param>
|
||||
public void FillInTheData(List<List_paraItem> weaponitemone)
|
||||
{
|
||||
switch (equipmentType)
|
||||
{
|
||||
case "激光火控平台":
|
||||
LaserFireControlPlatformManger laserFireControlPlatformManger = GetComponent<LaserFireControlPlatformManger>();
|
||||
laserFireControlPlatformManger.FillInTheData(weaponitemone);
|
||||
laserFireControlPlatformManger.isStartRehearsing= isStartRehearsing;
|
||||
break;
|
||||
case "探测雷达":
|
||||
RadarManger radarManger = GetComponent<RadarManger>();
|
||||
radarManger.FillInTheData(weaponitemone);
|
||||
break;
|
||||
case "地面无线电干扰":
|
||||
TerrestrialRadioInterferenceManger terrestrialRadioInterferenceManger = GetComponent<TerrestrialRadioInterferenceManger>();
|
||||
terrestrialRadioInterferenceManger.FillInTheData(weaponitemone);
|
||||
break;
|
||||
case "无人机List":
|
||||
UnmannedAerialVehicleManage unmannedAerialVehicleManage = GetComponent<UnmannedAerialVehicleManage>();
|
||||
unmannedAerialVehicleManage.FillInTheData(weaponitemone);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 0afac659d8be281448f9ecd22f828b72
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -2,6 +2,7 @@ using System.Collections;
|
|||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using DG.Tweening;
|
||||
using AdamThinkDevicesData;
|
||||
|
||||
/// <summary>
|
||||
/// 激光火控平台
|
||||
|
@ -12,10 +13,40 @@ public class LaserFireControlPlatformManger : MonoBehaviour
|
|||
/// 所有激光火控平台
|
||||
/// </summary>
|
||||
public static List<LaserFireControlPlatformManger> laserFireControlPlatformMangers = new List<LaserFireControlPlatformManger>();
|
||||
#region 启动暂停
|
||||
private bool _isStartRehearsing = false;
|
||||
/// <summary>
|
||||
/// 是否正在预演
|
||||
/// </summary>
|
||||
public bool isStartRehearsing = false;
|
||||
public bool isStartRehearsing
|
||||
{
|
||||
get { return _isStartRehearsing; }
|
||||
set
|
||||
{
|
||||
if (_isStartRehearsing != value)
|
||||
{
|
||||
_isStartRehearsing = value;
|
||||
OnActivationChanged?.Invoke(_isStartRehearsing);
|
||||
}
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 布尔值变化时触发的事件
|
||||
/// </summary>
|
||||
public event System.Action<bool> OnActivationChanged;
|
||||
/// <summary>
|
||||
/// 协程对象
|
||||
/// </summary>
|
||||
private Coroutine timerCoroutine;
|
||||
/// <summary>
|
||||
/// 定时器运行状态
|
||||
/// </summary>
|
||||
private bool isTimerRunning = false;
|
||||
/// <summary>
|
||||
/// 间隔时间
|
||||
/// </summary>
|
||||
public float interval = 5.0f;
|
||||
#endregion
|
||||
|
||||
/// <summary>
|
||||
/// 测试用
|
||||
|
@ -63,8 +94,10 @@ public class LaserFireControlPlatformManger : MonoBehaviour
|
|||
void Start()
|
||||
{
|
||||
laserFireControlPlatformMangers.Add(this);
|
||||
weaponitemones = Newtonsoft.Json.JsonConvert.DeserializeObject<Weaponitemone>(msg);
|
||||
FillInTheData(weaponitemones);//测试写入
|
||||
//weaponitemones = Newtonsoft.Json.JsonConvert.DeserializeObject<Weaponitemone>(msg);
|
||||
//FillInTheData(weaponitemones);//测试写入
|
||||
// 订阅布尔值变化事件
|
||||
OnActivationChanged += OnActivationChangedHandler;
|
||||
//生成激光
|
||||
GameObject _InnerLaserlineRenderer = Instantiate(InnerLaserlineRendererPrefab);
|
||||
_InnerLaserlineRenderer.transform.position = Vector3.zero;
|
||||
|
@ -95,29 +128,45 @@ public class LaserFireControlPlatformManger : MonoBehaviour
|
|||
{
|
||||
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 导条变化调用
|
||||
/// </summary>
|
||||
/// <param name="newValue"></param>
|
||||
void OnActivationChangedHandler(bool newValue)
|
||||
{
|
||||
if (newValue)
|
||||
{
|
||||
Debug.Log("导条开启时调用");
|
||||
}
|
||||
else
|
||||
{
|
||||
Debug.Log("导条暂停时调用");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 数据写入
|
||||
/// </summary>
|
||||
/// <param name="weaponitemone"></param>
|
||||
public void FillInTheData(Weaponitemone weaponitemone)
|
||||
public void FillInTheData(List<List_paraItem> weaponitemone)
|
||||
{
|
||||
for (int i = 0; i < weaponitemone.data.Count; i++)
|
||||
for (int i = 0; i < weaponitemone.Count; i++)
|
||||
{
|
||||
switch (weaponitemone.data[i].para_name)
|
||||
switch (weaponitemone[i].para_name)
|
||||
{
|
||||
case "储能间隔时间:":
|
||||
StorageIntervalTime = weaponitemone.data[i].para_value;
|
||||
StorageIntervalTime = weaponitemone[i].para_value;
|
||||
break;
|
||||
case "毁伤目标累积作用时间:":
|
||||
CumulativeActionTimeOfDamageTarget = weaponitemone.data[i].para_value;
|
||||
CumulativeActionTimeOfDamageTarget = weaponitemone[i].para_value;
|
||||
break;
|
||||
case "干扰距离:":
|
||||
InterferenceDistance = weaponitemone.data[i].para_value;
|
||||
InterferenceDistance = weaponitemone[i].para_value;
|
||||
break;
|
||||
case "干扰角度:":
|
||||
InterferenceAngle = weaponitemone.data[i].para_value;
|
||||
InterferenceAngle = weaponitemone[i].para_value;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
|
|
@ -1,16 +1,47 @@
|
|||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using AdamThinkDevicesData;
|
||||
|
||||
/// <summary>
|
||||
/// 雷达控制
|
||||
/// </summary>
|
||||
public class RadarManger : MonoBehaviour
|
||||
{
|
||||
#region 启动暂停
|
||||
private bool _isStartRehearsing = false;
|
||||
/// <summary>
|
||||
/// 是否正在预演
|
||||
/// </summary>
|
||||
public bool isStartRehearsing = false;
|
||||
public bool isStartRehearsing
|
||||
{
|
||||
get { return _isStartRehearsing; }
|
||||
set
|
||||
{
|
||||
if (_isStartRehearsing != value)
|
||||
{
|
||||
_isStartRehearsing = value;
|
||||
OnActivationChanged?.Invoke(_isStartRehearsing);
|
||||
}
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 布尔值变化时触发的事件
|
||||
/// </summary>
|
||||
public event System.Action<bool> OnActivationChanged;
|
||||
/// <summary>
|
||||
/// 协程对象
|
||||
/// </summary>
|
||||
private Coroutine timerCoroutine;
|
||||
/// <summary>
|
||||
/// 定时器运行状态
|
||||
/// </summary>
|
||||
private bool isTimerRunning = false;
|
||||
/// <summary>
|
||||
/// 间隔时间
|
||||
/// </summary>
|
||||
public float interval = 5.0f;
|
||||
#endregion
|
||||
|
||||
/// <summary>
|
||||
/// 测试用
|
||||
|
@ -81,19 +112,26 @@ public class RadarManger : MonoBehaviour
|
|||
public string PitchBeamwidth;
|
||||
|
||||
#endregion
|
||||
|
||||
public float detectionRadius = 5f; // 检测范围半径
|
||||
/// <summary>
|
||||
/// 检测范围半径
|
||||
/// </summary>
|
||||
public float detectionRadius = 5f; //
|
||||
/// <summary>
|
||||
/// 批量标处理能力
|
||||
/// </summary>
|
||||
public int NumberOfProbes = 0;
|
||||
// Start is called before the first frame update
|
||||
void Start()
|
||||
{
|
||||
weaponitemones = Newtonsoft.Json.JsonConvert.DeserializeObject<Weaponitemone>(msg);
|
||||
FillInTheData(weaponitemones);
|
||||
//weaponitemones = Newtonsoft.Json.JsonConvert.DeserializeObject<Weaponitemone>(msg);
|
||||
//FillInTheData(weaponitemones);
|
||||
aniRandar = GetComponent<Animator>();
|
||||
if (RadarUi == null)
|
||||
{
|
||||
CreateRadarUI();
|
||||
}
|
||||
|
||||
// 订阅布尔值变化事件
|
||||
OnActivationChanged += OnActivationChangedHandler;
|
||||
//InvokeRepeating("RetrievalUAV", 1, 5);//测试用
|
||||
}
|
||||
|
||||
|
@ -105,6 +143,58 @@ public class RadarManger : MonoBehaviour
|
|||
|
||||
}
|
||||
}
|
||||
#region 启动暂停
|
||||
/// <summary>
|
||||
/// 导条变化调用
|
||||
/// </summary>
|
||||
/// <param name="newValue"></param>
|
||||
void OnActivationChangedHandler(bool newValue)
|
||||
{
|
||||
if (newValue)
|
||||
{
|
||||
StartTimer();
|
||||
}
|
||||
else
|
||||
{
|
||||
StopTimer();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
IEnumerator Timer()
|
||||
{
|
||||
while (true)
|
||||
{
|
||||
Debug.Log("Timer fired at: " + Time.time);
|
||||
yield return new WaitForSeconds(interval); // 等待一段时间后继续执行
|
||||
RetrievalUAV();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 开启
|
||||
/// </summary>
|
||||
public void StartTimer()
|
||||
{
|
||||
if (timerCoroutine == null)
|
||||
{
|
||||
timerCoroutine = StartCoroutine(Timer());
|
||||
isTimerRunning = true;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 停止
|
||||
/// </summary>
|
||||
public void StopTimer()
|
||||
{
|
||||
if (timerCoroutine != null)
|
||||
{
|
||||
StopCoroutine(timerCoroutine);
|
||||
timerCoroutine = null;
|
||||
isTimerRunning = false;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
/// <summary>
|
||||
/// 生成雷达UI
|
||||
|
@ -127,42 +217,44 @@ public class RadarManger : MonoBehaviour
|
|||
/// 数据写入
|
||||
/// </summary>
|
||||
/// <param name="weaponitemone"></param>
|
||||
public void FillInTheData(Weaponitemone weaponitemone)
|
||||
public void FillInTheData(List<List_paraItem> weaponitemone)
|
||||
{
|
||||
for (int i = 0; i < weaponitemone.data.Count; i++)
|
||||
for (int i = 0; i < weaponitemone.Count; i++)
|
||||
{
|
||||
switch (weaponitemone.data[i].para_name)
|
||||
switch (weaponitemone[i].para_name)
|
||||
{
|
||||
case "转台转速:":
|
||||
TurntableSpeed = weaponitemone.data[i].para_value;
|
||||
TurntableSpeed = weaponitemone[i].para_value;
|
||||
RadarRotationSpeed(TurntableSpeed);
|
||||
break;
|
||||
case "探测距离:":
|
||||
DetectionRange = weaponitemone.data[i].para_value;
|
||||
DetectionRange = weaponitemone[i].para_value;
|
||||
detectionRadius = float.Parse(DetectionRange)*1000;
|
||||
break;
|
||||
case "近盲区:":
|
||||
NearBlindArea = weaponitemone.data[i].para_value;
|
||||
NearBlindArea = weaponitemone[i].para_value;
|
||||
break;
|
||||
case "批量标处理能力:":
|
||||
BatchStandardProcessingCapability = weaponitemone.data[i].para_value;
|
||||
BatchStandardProcessingCapability = weaponitemone[i].para_value;
|
||||
NumberOfProbes = int.Parse(BatchStandardProcessingCapability);
|
||||
break;
|
||||
case "探测成功率:":
|
||||
DetectionSuccessRate = weaponitemone.data[i].para_value;
|
||||
DetectionSuccessRate = weaponitemone[i].para_value;
|
||||
break;
|
||||
case "最小探测速度:":
|
||||
MinimumDetectionVelocity = weaponitemone.data[i].para_value;
|
||||
MinimumDetectionVelocity = weaponitemone[i].para_value;
|
||||
break;
|
||||
case "距离分辨率:":
|
||||
RangeResolution = weaponitemone.data[i].para_value;
|
||||
RangeResolution = weaponitemone[i].para_value;
|
||||
break;
|
||||
case "方位分辨率:":
|
||||
AzimuthResolution = weaponitemone.data[i].para_value;
|
||||
AzimuthResolution = weaponitemone[i].para_value;
|
||||
break;
|
||||
case "方位波束宽度:":
|
||||
AzimuthBeamwidth = weaponitemone.data[i].para_value;
|
||||
AzimuthBeamwidth = weaponitemone[i].para_value;
|
||||
break;
|
||||
case "俯仰波束宽度:":
|
||||
PitchBeamwidth = weaponitemone.data[i].para_value;
|
||||
PitchBeamwidth = weaponitemone[i].para_value;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
@ -193,19 +285,22 @@ public class RadarManger : MonoBehaviour
|
|||
public void RetrievalUAV()
|
||||
{
|
||||
Collider[] colliders = Physics.OverlapSphere(transform.position, detectionRadius); // 检索范围内的所有碰撞体
|
||||
|
||||
int number = 0;
|
||||
foreach (Collider col in colliders)
|
||||
{
|
||||
if (col.transform.tag == "WRJ")
|
||||
{
|
||||
|
||||
UnmannedAerialVehicle unmannedAerialVehicle = col.GetComponent<UnmannedAerialVehicle>();
|
||||
if (unmannedAerialVehicle)
|
||||
if (number>= NumberOfProbes)
|
||||
|
||||
if (unmannedAerialVehicle)
|
||||
{
|
||||
//Debug.Log("检测到无人机: " + col.name);
|
||||
LaserFireControlPlatformManger laserFireControlPlatformManger = LaserFireControlPlatformManger.laserFireControlPlatformMangers.Find(x=>(x!=null&&x.isLasing==false));
|
||||
|
||||
if (laserFireControlPlatformManger&& !laserFireControlPlatformManger.isLasing)
|
||||
{
|
||||
number++;
|
||||
laserFireControlPlatformManger.targetPoint = col.transform;
|
||||
laserFireControlPlatformManger.Lasing();
|
||||
}
|
||||
|
|
|
@ -0,0 +1,142 @@
|
|||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
/// <summary>
|
||||
/// 单机测试脚本
|
||||
/// </summary>
|
||||
public class SingleMachineTest : MonoBehaviour
|
||||
{
|
||||
/// <summary>
|
||||
/// 无人机
|
||||
/// </summary>
|
||||
public List<UnmannedAerialVehicleManage> unmannedAerialVehicleManages = new List<UnmannedAerialVehicleManage>();
|
||||
/// <summary>
|
||||
/// 雷达控制
|
||||
/// </summary>
|
||||
public List<RadarManger> radarMangers = new List<RadarManger>();
|
||||
/// <summary>
|
||||
/// 激光火控平台
|
||||
/// </summary>
|
||||
public List<LaserFireControlPlatformManger> laserFireControlPlatformMangers = new List<LaserFireControlPlatformManger>();
|
||||
/// <summary>
|
||||
/// 地面无线电干扰控制
|
||||
/// </summary>
|
||||
public List<TerrestrialRadioInterferenceManger> terrestrialRadioInterferenceMangers = new List<TerrestrialRadioInterferenceManger>();
|
||||
|
||||
|
||||
|
||||
private Coroutine timerCoroutine; // 协程对象
|
||||
private bool isTimerRunning = false; // 定时器运行状态
|
||||
public float interval = 2.0f; // 间隔时间
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 测试用
|
||||
/// </summary>
|
||||
public string msg1;
|
||||
/// <summary>
|
||||
/// 测试接受数据
|
||||
/// </summary>
|
||||
private Weaponitemone weaponitemones1;
|
||||
/// <summary>
|
||||
/// 测试用
|
||||
/// </summary>
|
||||
public string msg2;
|
||||
/// <summary>
|
||||
/// 测试接受数据
|
||||
/// </summary>
|
||||
private Weaponitemone weaponitemones2;
|
||||
/// <summary>
|
||||
/// 测试用
|
||||
/// </summary>
|
||||
public string msg3;
|
||||
/// <summary>
|
||||
/// 测试接受数据
|
||||
/// </summary>
|
||||
private Weaponitemone weaponitemones3;
|
||||
/// <summary>
|
||||
/// 测试用
|
||||
/// </summary>
|
||||
public string msg4;
|
||||
/// <summary>
|
||||
/// 测试接受数据
|
||||
/// </summary>
|
||||
private Weaponitemone weaponitemones4;
|
||||
void Start()
|
||||
{
|
||||
weaponitemones1 = Newtonsoft.Json.JsonConvert.DeserializeObject<Weaponitemone>(msg1);
|
||||
weaponitemones2 = Newtonsoft.Json.JsonConvert.DeserializeObject<Weaponitemone>(msg2);
|
||||
weaponitemones3 = Newtonsoft.Json.JsonConvert.DeserializeObject<Weaponitemone>(msg3);
|
||||
weaponitemones4 = Newtonsoft.Json.JsonConvert.DeserializeObject<Weaponitemone>(msg4);
|
||||
|
||||
//unmannedAerialVehicleManages.ForEach(x => x.FillInTheData(weaponitemones1));
|
||||
//radarMangers.ForEach(x => x.FillInTheData(weaponitemones2));
|
||||
//laserFireControlPlatformMangers.ForEach(x => x.FillInTheData(weaponitemones3));
|
||||
//terrestrialRadioInterferenceMangers.ForEach(x => x.FillInTheData(weaponitemones4));
|
||||
// 开始协程
|
||||
StartTimer();
|
||||
}
|
||||
|
||||
void FixedUpdate()
|
||||
{
|
||||
// 按下空格键来切换定时器的运行状态
|
||||
if (Input.GetKeyDown(KeyCode.Space))
|
||||
{
|
||||
if (isTimerRunning)
|
||||
{
|
||||
// 暂停定时器
|
||||
Debug.Log("暂停定时器执行调用: " + Time.time);
|
||||
StopTimer();
|
||||
}
|
||||
else
|
||||
{
|
||||
// 继续定时器
|
||||
Debug.Log("继续定时器执行调用: " + Time.time);
|
||||
StartTimer();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
IEnumerator Timer()
|
||||
{
|
||||
while (true)
|
||||
{
|
||||
//Debug.Log("执行调用: " + Time.time);
|
||||
yield return new WaitForSeconds(interval); // 等待一段时间后继续执行
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 启动演练
|
||||
/// </summary>
|
||||
void StartTimer()
|
||||
{
|
||||
if (timerCoroutine == null)
|
||||
{
|
||||
timerCoroutine = StartCoroutine(Timer());
|
||||
isTimerRunning = true;
|
||||
unmannedAerialVehicleManages.ForEach(x => x.isStartRehearsing = true);
|
||||
radarMangers.ForEach(x => x.isStartRehearsing = true);
|
||||
laserFireControlPlatformMangers.ForEach(x => x.isStartRehearsing = true);
|
||||
terrestrialRadioInterferenceMangers.ForEach(x => x.isStartRehearsing = true);
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 暂停演练
|
||||
/// </summary>
|
||||
void StopTimer()
|
||||
{
|
||||
if (timerCoroutine != null)
|
||||
{
|
||||
StopCoroutine(timerCoroutine);
|
||||
timerCoroutine = null;
|
||||
isTimerRunning = false;
|
||||
unmannedAerialVehicleManages.ForEach(x => x.isStartRehearsing = false);
|
||||
radarMangers.ForEach(x => x.isStartRehearsing = false);
|
||||
laserFireControlPlatformMangers.ForEach(x => x.isStartRehearsing = false);
|
||||
terrestrialRadioInterferenceMangers.ForEach(x => x.isStartRehearsing = false);
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,11 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 014683e72ff868e4c9c0d3eec7d87a26
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
|
@ -1,16 +1,14 @@
|
|||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using AdamThinkDevicesData;
|
||||
|
||||
/// <summary>
|
||||
/// 地面无线电干扰控制
|
||||
/// </summary>
|
||||
public class TerrestrialRadioInterferenceManger : MonoBehaviour
|
||||
{
|
||||
/// <summary>
|
||||
/// 是否正在预演
|
||||
/// </summary>
|
||||
public bool isStartRehearsing = false;
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// 测试用
|
||||
|
@ -46,13 +44,49 @@ public class TerrestrialRadioInterferenceManger : MonoBehaviour
|
|||
#endregion
|
||||
|
||||
public float detectionRadius = 5f; // 检测范围半径
|
||||
|
||||
#region 启动暂停
|
||||
private bool _isStartRehearsing = false;
|
||||
/// <summary>
|
||||
/// 是否正在预演
|
||||
/// </summary>
|
||||
public bool isStartRehearsing
|
||||
{
|
||||
get { return _isStartRehearsing; }
|
||||
set
|
||||
{
|
||||
if (_isStartRehearsing != value)
|
||||
{
|
||||
_isStartRehearsing = value;
|
||||
OnActivationChanged?.Invoke(_isStartRehearsing);
|
||||
}
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 布尔值变化时触发的事件
|
||||
/// </summary>
|
||||
public event System.Action<bool> OnActivationChanged;
|
||||
/// <summary>
|
||||
/// 协程对象
|
||||
/// </summary>
|
||||
private Coroutine timerCoroutine;
|
||||
/// <summary>
|
||||
/// 定时器运行状态
|
||||
/// </summary>
|
||||
private bool isTimerRunning = false;
|
||||
/// <summary>
|
||||
/// 间隔时间
|
||||
/// </summary>
|
||||
public float interval = 5.0f;
|
||||
#endregion
|
||||
// Start is called before the first frame update
|
||||
void Start()
|
||||
{
|
||||
weaponitemones = Newtonsoft.Json.JsonConvert.DeserializeObject<Weaponitemone>(msg);
|
||||
FillInTheData(weaponitemones);//测试写入
|
||||
//weaponitemones = Newtonsoft.Json.JsonConvert.DeserializeObject<Weaponitemone>(msg);
|
||||
//FillInTheData(weaponitemones);//测试写入
|
||||
|
||||
//InvokeRepeating("RadioDisturbance", 1, 5);//测试用
|
||||
// 订阅布尔值变化事件
|
||||
OnActivationChanged += OnActivationChangedHandler;
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
|
@ -60,31 +94,85 @@ public class TerrestrialRadioInterferenceManger : MonoBehaviour
|
|||
{
|
||||
|
||||
}
|
||||
#region 启动暂停
|
||||
/// <summary>
|
||||
/// 导条变化调用
|
||||
/// </summary>
|
||||
/// <param name="newValue"></param>
|
||||
void OnActivationChangedHandler(bool newValue)
|
||||
{
|
||||
if (newValue)
|
||||
{
|
||||
StartTimer();
|
||||
}
|
||||
else
|
||||
{
|
||||
StopTimer();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
IEnumerator Timer()
|
||||
{
|
||||
while (true)
|
||||
{
|
||||
//Debug.Log("Timer fired at: " + Time.time);
|
||||
yield return new WaitForSeconds(interval); // 等待一段时间后继续执行
|
||||
RadioDisturbance();
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 开启
|
||||
/// </summary>
|
||||
public void StartTimer()
|
||||
{
|
||||
if (timerCoroutine == null)
|
||||
{
|
||||
timerCoroutine = StartCoroutine(Timer());
|
||||
isTimerRunning = true;
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 停止
|
||||
/// </summary>
|
||||
public void StopTimer()
|
||||
{
|
||||
if (timerCoroutine != null)
|
||||
{
|
||||
StopCoroutine(timerCoroutine);
|
||||
timerCoroutine = null;
|
||||
isTimerRunning = false;
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
/// <summary>
|
||||
/// 数据写入
|
||||
/// </summary>
|
||||
/// <param name="weaponitemone"></param>
|
||||
public void FillInTheData(Weaponitemone weaponitemone)
|
||||
public void FillInTheData(List<List_paraItem> weaponitemone)
|
||||
{
|
||||
for (int i = 0; i < weaponitemone.data.Count; i++)
|
||||
for (int i = 0; i < weaponitemone.Count; i++)
|
||||
{
|
||||
switch (weaponitemone.data[i].para_name)
|
||||
switch (weaponitemone[i].para_name)
|
||||
{
|
||||
case "干扰频率:":
|
||||
InterferingFrequency = weaponitemone.data[i].para_value;
|
||||
InterferingFrequency = weaponitemone[i].para_value;
|
||||
interval= float.Parse(InterferingFrequency);
|
||||
break;
|
||||
case "干扰模式:":
|
||||
InterferenceMode = weaponitemone.data[i].para_value;
|
||||
InterferenceMode = weaponitemone[i].para_value;
|
||||
break;
|
||||
case "发射功率:":
|
||||
TransmittedPower = weaponitemone.data[i].para_value;
|
||||
TransmittedPower = weaponitemone[i].para_value;
|
||||
break;
|
||||
case "干扰角度:":
|
||||
InterferenceAngle = weaponitemone.data[i].para_value;
|
||||
InterferenceAngle = weaponitemone[i].para_value;
|
||||
break;
|
||||
case "干扰距离:":
|
||||
InterferenceDistance = weaponitemone.data[i].para_value;
|
||||
InterferenceDistance = weaponitemone[i].para_value;
|
||||
detectionRadius = float.Parse(InterferenceDistance);
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
@ -108,6 +196,7 @@ public class TerrestrialRadioInterferenceManger : MonoBehaviour
|
|||
if (unmannedAerialVehicle)
|
||||
{
|
||||
Debug.Log(col.name+"数据链通信频点...:" + unmannedAerialVehicle.dataLinkCommunicationFrequency);
|
||||
if (unmannedAerialVehicle.dataLinkCommunicationFrequency == "" || InterferingFrequency == "") return;//无数据不执行
|
||||
if(unmannedAerialVehicle.dataLinkCommunicationFrequency== InterferingFrequency)
|
||||
{
|
||||
Debug.Log("干扰...:"+ col.name + "成功。");
|
||||
|
|
|
@ -2,6 +2,7 @@ using System.Collections;
|
|||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using DG.Tweening;
|
||||
using System.Linq;
|
||||
|
||||
/// <summary>
|
||||
/// 无人机
|
||||
|
@ -59,6 +60,11 @@ public class UnmannedAerialVehicle : MonoBehaviour
|
|||
/// 是否正在攻击目标
|
||||
/// </summary>
|
||||
private bool isEngagedTarget = false;
|
||||
/// <summary>
|
||||
/// 爆炸预制体
|
||||
/// </summary>
|
||||
public GameObject explodePrefab;
|
||||
|
||||
// Start is called before the first frame update
|
||||
void Start()
|
||||
{
|
||||
|
@ -68,17 +74,17 @@ public class UnmannedAerialVehicle : MonoBehaviour
|
|||
// Update is called once per frame
|
||||
void Update()
|
||||
{
|
||||
if (unmannedAerialVehicleManage)
|
||||
if (unmannedAerialVehicleManage && unmannedAerialVehicleManage.isStartRehearsing)
|
||||
{
|
||||
switch (unmannedAerialVehicleManage.pattern)
|
||||
{
|
||||
case Pattern.待机:
|
||||
break;
|
||||
case Pattern.警戒:
|
||||
//AttackATarget();
|
||||
AttackATarget();
|
||||
break;
|
||||
case Pattern.攻击:
|
||||
//AttackATarget();
|
||||
AttackATarget();
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
@ -91,16 +97,14 @@ public class UnmannedAerialVehicle : MonoBehaviour
|
|||
{
|
||||
if (!isEngagedTarget)
|
||||
{
|
||||
Collider[] colliders = Physics.OverlapSphere(transform.position, detectionRadius); // 检索范围内的所有碰撞体
|
||||
foreach (Collider col in colliders)
|
||||
List<Collider> colliders = Physics.OverlapSphere(transform.position, detectionRadius).ToList(); // 检索范围内的所有碰撞体
|
||||
List<Collider> colliders1 = colliders.FindAll(x => x.transform.tag == "AttackTarget");
|
||||
if (colliders1.Count>0)
|
||||
{
|
||||
//Debug.Log("检测到Gongjimubiao: " + col.name);
|
||||
if (col.transform.tag == "AttackTarget")
|
||||
{
|
||||
Debug.Log(col.transform.name);
|
||||
AttAck(col.transform);
|
||||
isEngagedTarget = true;
|
||||
}
|
||||
int _number= Random.Range(0, colliders1.Count-1);
|
||||
isEngagedTarget = true;
|
||||
Debug.Log(colliders1[_number].transform.name);
|
||||
AttAck(colliders1[_number].transform);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -111,18 +115,30 @@ public class UnmannedAerialVehicle : MonoBehaviour
|
|||
private void AttAck(Transform target)
|
||||
{
|
||||
Debug.Log("开始攻击目标..:" + target.name);
|
||||
transform.DOLookAt(target.position, 0.1f).OnComplete(() => {
|
||||
Vector3 _v3 = target.position;
|
||||
transform.DOLookAt(_v3, 0.1f).OnComplete(() => {
|
||||
float distance = Vector3.Distance(transform.position, target.position);
|
||||
transform.DOMove(target.position, distance / FireSpeed);
|
||||
transform.DOMove(target.position, distance / FireSpeed).SetEase(Ease.Linear).OnComplete(()=> {
|
||||
if (!target)
|
||||
{
|
||||
BeAssaulted("没有攻击到目标");
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
private void OnTriggerEnter(Collider other)
|
||||
{
|
||||
if (other.tag == "AttackTarget")
|
||||
{
|
||||
// 销毁objectToDestroy对象
|
||||
Destroy(transform.gameObject);
|
||||
BeAssaulted("攻击到目标");
|
||||
GameObject Bao = Instantiate(explodePrefab, other.transform);
|
||||
Bao.transform.localPosition = Vector3.zero;
|
||||
Bao.transform.SetParent(null);
|
||||
Bao.SetActive(true);
|
||||
Destroy(other.gameObject);
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -134,10 +150,40 @@ public class UnmannedAerialVehicle : MonoBehaviour
|
|||
{
|
||||
switch (type) {
|
||||
case "激光打击":
|
||||
Destroy(gameObject);
|
||||
GameObject Bao1 = Instantiate(explodePrefab, transform);
|
||||
Bao1.transform.localPosition = Vector3.zero;
|
||||
Bao1.transform.SetParent(null);
|
||||
Bao1.SetActive(true);
|
||||
DistroyThis();
|
||||
Debug.Log("无人机被激光打击销毁了");
|
||||
break;
|
||||
case "无线电干扰":
|
||||
Destroy(gameObject);
|
||||
Vector3 _pos = transform.position - new Vector3(0, 30, 0);
|
||||
transform.LookAt(_pos);
|
||||
transform.DOMove(_pos, 1).OnComplete(() => {
|
||||
GameObject Bao2 = Instantiate(explodePrefab, transform);
|
||||
Bao2.transform.localPosition = Vector3.zero;
|
||||
Bao2.transform.SetParent(null);
|
||||
Bao2.SetActive(true);
|
||||
DistroyThis();
|
||||
});
|
||||
Debug.Log("无人机被无线电干扰销毁了");
|
||||
break;
|
||||
case "攻击到目标":
|
||||
GameObject Bao3 = Instantiate(explodePrefab, transform);
|
||||
Bao3.transform.localPosition = Vector3.zero;
|
||||
Bao3.transform.SetParent(null);
|
||||
Bao3.SetActive(true);
|
||||
DistroyThis();
|
||||
Debug.Log("无人机自杀式攻击销毁了");
|
||||
break;
|
||||
case "没有攻击到目标":
|
||||
GameObject Bao4 = Instantiate(explodePrefab, transform);
|
||||
Bao4.transform.localPosition = Vector3.zero;
|
||||
Bao4.transform.SetParent(null);
|
||||
Bao4.SetActive(true);
|
||||
DistroyThis();
|
||||
Debug.Log("无人机自杀式销毁了");
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
@ -146,11 +192,15 @@ public class UnmannedAerialVehicle : MonoBehaviour
|
|||
|
||||
}
|
||||
|
||||
void DistroyThis()
|
||||
{
|
||||
Destroy(gameObject);
|
||||
}
|
||||
|
||||
|
||||
void OnDestroy()
|
||||
{
|
||||
transform.DOKill();
|
||||
Debug.Log("被销毁了");
|
||||
//
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,7 +1,9 @@
|
|||
using DG.Tweening;
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using AdamThinkDevicesData;
|
||||
|
||||
/// <summary>
|
||||
/// 单个无人机蜂群控制
|
||||
|
@ -10,10 +12,33 @@ public class UnmannedAerialVehicleManage : MonoBehaviour
|
|||
{
|
||||
|
||||
public static List<UnmannedAerialVehicleManage> unmannedAerialVehicleManages = new List<UnmannedAerialVehicleManage>();
|
||||
#region 启动暂停
|
||||
private bool _isStartRehearsing = false;
|
||||
/// <summary>
|
||||
/// 是否正在预演
|
||||
/// </summary>
|
||||
public bool isStartRehearsing = false;
|
||||
public bool isStartRehearsing
|
||||
{
|
||||
get { return _isStartRehearsing; }
|
||||
set
|
||||
{
|
||||
if (_isStartRehearsing != value)
|
||||
{
|
||||
_isStartRehearsing = value;
|
||||
OnActivationChanged?.Invoke(_isStartRehearsing);
|
||||
}
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 布尔值变化时触发的事件
|
||||
/// </summary>
|
||||
public event System.Action<bool> OnActivationChanged;
|
||||
|
||||
/// <summary>
|
||||
/// 间隔时间
|
||||
/// </summary>
|
||||
public float interval = 5.0f;
|
||||
#endregion
|
||||
/// <summary>
|
||||
/// 状态
|
||||
/// </summary>
|
||||
|
@ -52,6 +77,15 @@ public class UnmannedAerialVehicleManage : MonoBehaviour
|
|||
/// 航线
|
||||
/// </summary>
|
||||
public GameObject airRoute;
|
||||
/// <summary>
|
||||
/// 已有路径
|
||||
/// </summary>
|
||||
public Queue<Vector3> positions=new Queue<Vector3>();
|
||||
public Vector3 endPosition=new Vector3();
|
||||
/// <summary>
|
||||
/// 飞行速度
|
||||
/// </summary>
|
||||
public float FireSpeed = 20.0f;
|
||||
#region 无人机数据
|
||||
/// <summary>
|
||||
/// 续航时间
|
||||
|
@ -91,12 +125,11 @@ public class UnmannedAerialVehicleManage : MonoBehaviour
|
|||
void Start()
|
||||
{
|
||||
unmannedAerialVehicleManages.Add(this);
|
||||
//Weaponitem weaponitem;
|
||||
//weaponitem = Newtonsoft.Json.JsonConvert.DeserializeObject<Weaponitem>(msg);
|
||||
//weaponitems.Add(weaponitem);
|
||||
weaponitemones = Newtonsoft.Json.JsonConvert.DeserializeObject<Weaponitemone>(msg);
|
||||
FillInTheData(weaponitemones);//测试写入
|
||||
//weaponitemones = Newtonsoft.Json.JsonConvert.DeserializeObject<Weaponitemone>(msg);
|
||||
//FillInTheData(weaponitemones);//测试写入
|
||||
Formation(1);//默认阵型
|
||||
// 订阅布尔值变化事件
|
||||
OnActivationChanged += OnActivationChangedHandler;
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
|
@ -114,6 +147,13 @@ public class UnmannedAerialVehicleManage : MonoBehaviour
|
|||
}
|
||||
}
|
||||
}
|
||||
if (isStartRehearsing && isStartRehearsing&&pattern == Pattern.攻击)
|
||||
{
|
||||
if (airRoute)
|
||||
{
|
||||
StartMoveObjectAlongPath();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -130,11 +170,7 @@ public class UnmannedAerialVehicleManage : MonoBehaviour
|
|||
break;
|
||||
case 2:
|
||||
pattern = Pattern.攻击;
|
||||
ObjectPlanner objectPlanner = airRoute.GetComponent<ObjectPlanner>();
|
||||
if (objectPlanner)
|
||||
{
|
||||
objectPlanner.StartMoveObjectAlongPath();
|
||||
}
|
||||
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
@ -142,44 +178,66 @@ public class UnmannedAerialVehicleManage : MonoBehaviour
|
|||
|
||||
}
|
||||
|
||||
#region 启动暂停
|
||||
/// <summary>
|
||||
/// 导条变化调用
|
||||
/// </summary>
|
||||
/// <param name="newValue"></param>
|
||||
void OnActivationChangedHandler(bool newValue)
|
||||
{
|
||||
if (newValue)
|
||||
{
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
#endregion
|
||||
|
||||
#region 数据写入
|
||||
/// <summary>
|
||||
/// 数据写入
|
||||
/// </summary>
|
||||
/// <param name="weaponitemone"></param>
|
||||
public void FillInTheData(Weaponitemone weaponitemone)
|
||||
public void FillInTheData(List<List_paraItem> weaponitemone)
|
||||
{
|
||||
for(int i=0;i< weaponitemone.data.Count; i++)
|
||||
for(int i=0;i< weaponitemone.Count; i++)
|
||||
{
|
||||
switch (weaponitemone.data[i].para_name) {
|
||||
switch (weaponitemone[i].para_name) {
|
||||
case "续航时间:":
|
||||
batteryLife = weaponitemone.data[i].para_value;
|
||||
batteryLife = weaponitemone[i].para_value;
|
||||
break;
|
||||
case "抗风等级:":
|
||||
classificationWindResistance = weaponitemone.data[i].para_value;
|
||||
classificationWindResistance = weaponitemone[i].para_value;
|
||||
break;
|
||||
case "最大飞行速度:":
|
||||
maximumFlyingSpeed = weaponitemone.data[i].para_value;
|
||||
maximumFlyingSpeed = weaponitemone[i].para_value;
|
||||
FireSpeed = float.Parse(maximumFlyingSpeed);
|
||||
break;
|
||||
case "RCS:":
|
||||
RCS = weaponitemone.data[i].para_value;
|
||||
RCS = weaponitemone[i].para_value;
|
||||
break;
|
||||
case "卫星定位频点:":
|
||||
satellitePositioningFrequency = weaponitemone.data[i].para_value;
|
||||
satellitePositioningFrequency = weaponitemone[i].para_value;
|
||||
break;
|
||||
case "数据链通信频点:":
|
||||
dataLinkCommunicationFrequency = weaponitemone.data[i].para_value;
|
||||
dataLinkCommunicationFrequency = weaponitemone[i].para_value;
|
||||
break;
|
||||
case "电子侦察能力:":
|
||||
electronicReconnaissanceCapability = weaponitemone.data[i].para_value;
|
||||
electronicReconnaissanceCapability = weaponitemone[i].para_value;
|
||||
break;
|
||||
case "光学侦察能力:":
|
||||
opticalReconnaissanceCapability = weaponitemone.data[i].para_value;
|
||||
opticalReconnaissanceCapability = weaponitemone[i].para_value;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
}
|
||||
if(i== (weaponitemone.data.Count - 1))
|
||||
if(i== (weaponitemone.Count - 1))
|
||||
{
|
||||
StartCoroutine(WeaponitemoneDataAddition());
|
||||
}
|
||||
|
@ -335,7 +393,7 @@ public class UnmannedAerialVehicleManage : MonoBehaviour
|
|||
{
|
||||
objectPlanner.isPathCanBePlanned = true;
|
||||
objectPlanner.lineRenderer.SetVertexCount(0);
|
||||
Array.Clear(objectPlanner.positions, 0, objectPlanner.positions.Length);
|
||||
positions.Clear();
|
||||
}
|
||||
}
|
||||
else
|
||||
|
@ -346,12 +404,36 @@ public class UnmannedAerialVehicleManage : MonoBehaviour
|
|||
ObjectPlanner objectPlanner = airRoute.GetComponent<ObjectPlanner>();
|
||||
if (objectPlanner)
|
||||
{
|
||||
objectPlanner.unmannedAerialVehicleManage = this;
|
||||
objectPlanner.isPathCanBePlanned = true;
|
||||
objectPlanner.SetSelectedObject(transform.gameObject);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private bool isMove = true;
|
||||
/// <summary>
|
||||
/// 按规划路径开始移动
|
||||
/// </summary>
|
||||
public void StartMoveObjectAlongPath()
|
||||
{
|
||||
if (isMove&&positions.Count > 0)
|
||||
{
|
||||
isMove = false;
|
||||
StartCoroutine(MoveObjectAlongPath(positions.Dequeue())); // 启动协程,按规划的路线移动物体
|
||||
}
|
||||
}
|
||||
|
||||
IEnumerator MoveObjectAlongPath(Vector3 positions) // 协程:按路线移动物体
|
||||
{
|
||||
Vector3 targetPosition = positions + new Vector3(0, 10, 0);// 目标位置为当前顶点坐标
|
||||
float _distance = Vector3.Distance(transform.position, targetPosition);
|
||||
float _time = _distance / FireSpeed;
|
||||
transform.LookAt(endPosition);
|
||||
transform.DOMove(targetPosition, _time).SetEase(Ease.Linear);
|
||||
yield return new WaitForSeconds(_time); // 等待一帧时间
|
||||
isMove = true;
|
||||
}
|
||||
|
||||
private void OnMouseEnter()
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue