Merge branch 'master' of http://git.umayle.com:2023/yulong/NewN_UAVPlane
This commit is contained in:
commit
bd6691b341
|
@ -32,8 +32,8 @@ Material:
|
||||||
- _dispStrength: 1
|
- _dispStrength: 1
|
||||||
- _overBright: 1
|
- _overBright: 1
|
||||||
m_Colors:
|
m_Colors:
|
||||||
- _AmbientTint: {r: 1, g: 1, b: 1, a: 1}
|
- _AmbientTint: {r: 0, g: 0, b: 0, a: 1}
|
||||||
- _Color: {r: 0.5, g: 0.49803922, b: 0.49215686, a: 0.2}
|
- _Color: {r: 0.25, g: 0.25, b: 0.25, a: 0.040000003}
|
||||||
- _GlowColor: {r: 0.5, g: 0.5, b: 0.5, a: 0.5}
|
- _GlowColor: {r: 0.5, g: 0.5, b: 0.5, a: 0.5}
|
||||||
- _PrimaryTint: {r: 1, g: 1, b: 1, a: 1}
|
- _PrimaryTint: {r: 1, g: 1, b: 1, a: 1}
|
||||||
- _TintColor: {r: 1, g: 1, b: 1, a: 1}
|
- _TintColor: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
|
|
@ -0,0 +1,77 @@
|
||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!21 &2100000
|
||||||
|
Material:
|
||||||
|
serializedVersion: 6
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_Name: WeiBo
|
||||||
|
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
|
||||||
|
m_ShaderKeywords:
|
||||||
|
m_LightmapFlags: 4
|
||||||
|
m_EnableInstancingVariants: 0
|
||||||
|
m_DoubleSidedGI: 0
|
||||||
|
m_CustomRenderQueue: -1
|
||||||
|
stringTagMap: {}
|
||||||
|
disabledShaderPasses: []
|
||||||
|
m_SavedProperties:
|
||||||
|
serializedVersion: 3
|
||||||
|
m_TexEnvs:
|
||||||
|
- _BumpMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _DetailAlbedoMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _DetailMask:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _DetailNormalMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _EmissionMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _MainTex:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _MetallicGlossMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _OcclusionMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
- _ParallaxMap:
|
||||||
|
m_Texture: {fileID: 0}
|
||||||
|
m_Scale: {x: 1, y: 1}
|
||||||
|
m_Offset: {x: 0, y: 0}
|
||||||
|
m_Floats:
|
||||||
|
- _BumpScale: 1
|
||||||
|
- _Cutoff: 0.5
|
||||||
|
- _DetailNormalMapScale: 1
|
||||||
|
- _DstBlend: 0
|
||||||
|
- _GlossMapScale: 1
|
||||||
|
- _Glossiness: 0.5
|
||||||
|
- _GlossyReflections: 1
|
||||||
|
- _Metallic: 0
|
||||||
|
- _Mode: 0
|
||||||
|
- _OcclusionStrength: 1
|
||||||
|
- _Parallax: 0.02
|
||||||
|
- _SmoothnessTextureChannel: 0
|
||||||
|
- _SpecularHighlights: 1
|
||||||
|
- _SrcBlend: 1
|
||||||
|
- _UVSec: 0
|
||||||
|
- _ZWrite: 1
|
||||||
|
m_Colors:
|
||||||
|
- _Color: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
|
|
@ -0,0 +1,8 @@
|
||||||
|
fileFormatVersion: 2
|
||||||
|
guid: b040f9a182855c8418d868f705a8e7d0
|
||||||
|
NativeFormatImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
mainObjectFileID: 0
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
|
@ -28,6 +28,7 @@ Transform:
|
||||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
m_Children:
|
m_Children:
|
||||||
- {fileID: 1929796912102659678}
|
- {fileID: 1929796912102659678}
|
||||||
|
- {fileID: 2036827053615246670}
|
||||||
m_Father: {fileID: 4884441768212777941}
|
m_Father: {fileID: 4884441768212777941}
|
||||||
m_RootOrder: 0
|
m_RootOrder: 0
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
@ -48,7 +49,7 @@ GameObject:
|
||||||
m_Icon: {fileID: 0}
|
m_Icon: {fileID: 0}
|
||||||
m_NavMeshLayer: 0
|
m_NavMeshLayer: 0
|
||||||
m_StaticEditorFlags: 0
|
m_StaticEditorFlags: 0
|
||||||
m_IsActive: 1
|
m_IsActive: 0
|
||||||
--- !u!4 &1929796912102659678
|
--- !u!4 &1929796912102659678
|
||||||
Transform:
|
Transform:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
|
@ -235,3 +236,78 @@ BoxCollider:
|
||||||
serializedVersion: 2
|
serializedVersion: 2
|
||||||
m_Size: {x: 0.42641535, y: 0.4577637, z: 0.48782435}
|
m_Size: {x: 0.42641535, y: 0.4577637, z: 0.48782435}
|
||||||
m_Center: {x: -0.003455268, y: 0.005852593, z: -0.32}
|
m_Center: {x: -0.003455268, y: 0.005852593, z: -0.32}
|
||||||
|
--- !u!1001 &2003813850601294501
|
||||||
|
PrefabInstance:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Modification:
|
||||||
|
m_TransformParent: {fileID: 4159137828818466878}
|
||||||
|
m_Modifications:
|
||||||
|
- target: {fileID: -8679921383154817045, guid: d14c6397f108bf64b96946deb44c3369,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalPosition.x
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -8679921383154817045, guid: d14c6397f108bf64b96946deb44c3369,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalPosition.y
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -8679921383154817045, guid: d14c6397f108bf64b96946deb44c3369,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalPosition.z
|
||||||
|
value: -0.369
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -8679921383154817045, guid: d14c6397f108bf64b96946deb44c3369,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalRotation.x
|
||||||
|
value: 1
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -8679921383154817045, guid: d14c6397f108bf64b96946deb44c3369,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalRotation.y
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -8679921383154817045, guid: d14c6397f108bf64b96946deb44c3369,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalRotation.z
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -8679921383154817045, guid: d14c6397f108bf64b96946deb44c3369,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalRotation.w
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -8679921383154817045, guid: d14c6397f108bf64b96946deb44c3369,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_RootOrder
|
||||||
|
value: 1
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -8679921383154817045, guid: d14c6397f108bf64b96946deb44c3369,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalEulerAnglesHint.x
|
||||||
|
value: 180
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -8679921383154817045, guid: d14c6397f108bf64b96946deb44c3369,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalEulerAnglesHint.y
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -8679921383154817045, guid: d14c6397f108bf64b96946deb44c3369,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalEulerAnglesHint.z
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 919132149155446097, guid: d14c6397f108bf64b96946deb44c3369,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_Name
|
||||||
|
value: "00-TYZ107\u65E0\u7EBF\u7535\u63A2\u6D4B"
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
m_RemovedComponents: []
|
||||||
|
m_SourcePrefab: {fileID: 100100000, guid: d14c6397f108bf64b96946deb44c3369, type: 3}
|
||||||
|
--- !u!4 &2036827053615246670 stripped
|
||||||
|
Transform:
|
||||||
|
m_CorrespondingSourceObject: {fileID: -8679921383154817045, guid: d14c6397f108bf64b96946deb44c3369,
|
||||||
|
type: 3}
|
||||||
|
m_PrefabInstance: {fileID: 2003813850601294501}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -3004,7 +3004,7 @@ GameObject:
|
||||||
m_Icon: {fileID: 0}
|
m_Icon: {fileID: 0}
|
||||||
m_NavMeshLayer: 0
|
m_NavMeshLayer: 0
|
||||||
m_StaticEditorFlags: 0
|
m_StaticEditorFlags: 0
|
||||||
m_IsActive: 1
|
m_IsActive: 0
|
||||||
--- !u!4 &5701123941140402312
|
--- !u!4 &5701123941140402312
|
||||||
Transform:
|
Transform:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
|
@ -5785,6 +5785,7 @@ Transform:
|
||||||
m_LocalScale: {x: 10, y: 10, z: 10}
|
m_LocalScale: {x: 10, y: 10, z: 10}
|
||||||
m_Children:
|
m_Children:
|
||||||
- {fileID: 5701123941140402312}
|
- {fileID: 5701123941140402312}
|
||||||
|
- {fileID: 8023347097485828900}
|
||||||
m_Father: {fileID: 0}
|
m_Father: {fileID: 0}
|
||||||
m_RootOrder: 0
|
m_RootOrder: 0
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: -30, z: 0}
|
m_LocalEulerAnglesHint: {x: 0, y: -30, z: 0}
|
||||||
|
@ -6003,3 +6004,78 @@ MeshRenderer:
|
||||||
m_SortingLayerID: 0
|
m_SortingLayerID: 0
|
||||||
m_SortingLayer: 0
|
m_SortingLayer: 0
|
||||||
m_SortingOrder: 0
|
m_SortingOrder: 0
|
||||||
|
--- !u!1001 &7553133410364982479
|
||||||
|
PrefabInstance:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Modification:
|
||||||
|
m_TransformParent: {fileID: 7107351192811671799}
|
||||||
|
m_Modifications:
|
||||||
|
- target: {fileID: -8679921383154817045, guid: ab8934f594dda544fbe15dfca8152d03,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalPosition.x
|
||||||
|
value: 0.074
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -8679921383154817045, guid: ab8934f594dda544fbe15dfca8152d03,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalPosition.y
|
||||||
|
value: 0.24
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -8679921383154817045, guid: ab8934f594dda544fbe15dfca8152d03,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalPosition.z
|
||||||
|
value: -0.043
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -8679921383154817045, guid: ab8934f594dda544fbe15dfca8152d03,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalRotation.x
|
||||||
|
value: 0.7193398
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -8679921383154817045, guid: ab8934f594dda544fbe15dfca8152d03,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalRotation.y
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -8679921383154817045, guid: ab8934f594dda544fbe15dfca8152d03,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalRotation.z
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -8679921383154817045, guid: ab8934f594dda544fbe15dfca8152d03,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalRotation.w
|
||||||
|
value: 0.6946584
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -8679921383154817045, guid: ab8934f594dda544fbe15dfca8152d03,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_RootOrder
|
||||||
|
value: 1
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -8679921383154817045, guid: ab8934f594dda544fbe15dfca8152d03,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalEulerAnglesHint.x
|
||||||
|
value: 92
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -8679921383154817045, guid: ab8934f594dda544fbe15dfca8152d03,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalEulerAnglesHint.y
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: -8679921383154817045, guid: ab8934f594dda544fbe15dfca8152d03,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_LocalEulerAnglesHint.z
|
||||||
|
value: 0
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
- target: {fileID: 919132149155446097, guid: ab8934f594dda544fbe15dfca8152d03,
|
||||||
|
type: 3}
|
||||||
|
propertyPath: m_Name
|
||||||
|
value: "107\u4FA6\u6D4B"
|
||||||
|
objectReference: {fileID: 0}
|
||||||
|
m_RemovedComponents: []
|
||||||
|
m_SourcePrefab: {fileID: 100100000, guid: ab8934f594dda544fbe15dfca8152d03, type: 3}
|
||||||
|
--- !u!4 &8023347097485828900 stripped
|
||||||
|
Transform:
|
||||||
|
m_CorrespondingSourceObject: {fileID: -8679921383154817045, guid: ab8934f594dda544fbe15dfca8152d03,
|
||||||
|
type: 3}
|
||||||
|
m_PrefabInstance: {fileID: 7553133410364982479}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
|
|
@ -1,5 +1,119 @@
|
||||||
%YAML 1.1
|
%YAML 1.1
|
||||||
%TAG !u! tag:unity3d.com,2011:
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!1 &754591303622147498
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 3263110947046999335}
|
||||||
|
m_Layer: 5
|
||||||
|
m_Name: KeyObjectiveUI
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!224 &3263110947046999335
|
||||||
|
RectTransform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 754591303622147498}
|
||||||
|
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||||
|
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||||
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
|
m_Children:
|
||||||
|
- {fileID: 7232062429697756631}
|
||||||
|
m_Father: {fileID: 8104960197897296327}
|
||||||
|
m_RootOrder: 0
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
m_AnchorMin: {x: 0.5, y: 0.5}
|
||||||
|
m_AnchorMax: {x: 0.5, y: 0.5}
|
||||||
|
m_AnchoredPosition: {x: 0, y: 0}
|
||||||
|
m_SizeDelta: {x: 100, y: 100}
|
||||||
|
m_Pivot: {x: 0.5, y: 0.5}
|
||||||
|
--- !u!1 &932188722785843070
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 3484774896235331638}
|
||||||
|
- component: {fileID: 7401283799921578568}
|
||||||
|
- component: {fileID: 6008035116235448753}
|
||||||
|
m_Layer: 5
|
||||||
|
m_Name: Text
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!224 &3484774896235331638
|
||||||
|
RectTransform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 932188722785843070}
|
||||||
|
m_LocalRotation: {x: 0.70710677, y: -0.7071068, z: 0, w: 0}
|
||||||
|
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||||
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
|
m_Children: []
|
||||||
|
m_Father: {fileID: 7232062429697756631}
|
||||||
|
m_RootOrder: 0
|
||||||
|
m_LocalEulerAnglesHint: {x: 180, y: 0, z: 90.00001}
|
||||||
|
m_AnchorMin: {x: 0.5, y: 0.5}
|
||||||
|
m_AnchorMax: {x: 0.5, y: 0.5}
|
||||||
|
m_AnchoredPosition: {x: -13, y: -0}
|
||||||
|
m_SizeDelta: {x: 160, y: 30}
|
||||||
|
m_Pivot: {x: 0.5, y: 0.5}
|
||||||
|
--- !u!222 &7401283799921578568
|
||||||
|
CanvasRenderer:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 932188722785843070}
|
||||||
|
m_CullTransparentMesh: 0
|
||||||
|
--- !u!114 &6008035116235448753
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 932188722785843070}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 5f7201a12d95ffc409449d95f23cf332, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
m_Material: {fileID: 0}
|
||||||
|
m_Color: {r: 0.21176472, g: 0.854902, b: 0.69411767, a: 1}
|
||||||
|
m_RaycastTarget: 1
|
||||||
|
m_Maskable: 1
|
||||||
|
m_OnCullStateChanged:
|
||||||
|
m_PersistentCalls:
|
||||||
|
m_Calls: []
|
||||||
|
m_FontData:
|
||||||
|
m_Font: {fileID: 12800000, guid: da4f9608fdc20254fb802a981fd78164, type: 3}
|
||||||
|
m_FontSize: 14
|
||||||
|
m_FontStyle: 0
|
||||||
|
m_BestFit: 0
|
||||||
|
m_MinSize: 10
|
||||||
|
m_MaxSize: 40
|
||||||
|
m_Alignment: 4
|
||||||
|
m_AlignByGeometry: 0
|
||||||
|
m_RichText: 1
|
||||||
|
m_HorizontalOverflow: 0
|
||||||
|
m_VerticalOverflow: 0
|
||||||
|
m_LineSpacing: 1
|
||||||
|
m_Text: "\u91CD\u70B9\u76EE\u6807"
|
||||||
--- !u!1 &5097883802883278075
|
--- !u!1 &5097883802883278075
|
||||||
GameObject:
|
GameObject:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
|
@ -26,7 +140,7 @@ Transform:
|
||||||
m_PrefabAsset: {fileID: 0}
|
m_PrefabAsset: {fileID: 0}
|
||||||
m_GameObject: {fileID: 5097883802883278075}
|
m_GameObject: {fileID: 5097883802883278075}
|
||||||
m_LocalRotation: {x: -0.7071068, y: -0, z: -0, w: 0.7071068}
|
m_LocalRotation: {x: -0.7071068, y: -0, z: -0, w: 0.7071068}
|
||||||
m_LocalPosition: {x: -0.009236222, y: 2.1241412, z: -1.7668211}
|
m_LocalPosition: {x: 0, y: 2.1241412, z: 0}
|
||||||
m_LocalScale: {x: 6, y: 6, z: 6}
|
m_LocalScale: {x: 6, y: 6, z: 6}
|
||||||
m_Children: []
|
m_Children: []
|
||||||
m_Father: {fileID: 8425345772495695667}
|
m_Father: {fileID: 8425345772495695667}
|
||||||
|
@ -79,6 +193,177 @@ MeshRenderer:
|
||||||
m_SortingLayerID: 0
|
m_SortingLayerID: 0
|
||||||
m_SortingLayer: 0
|
m_SortingLayer: 0
|
||||||
m_SortingOrder: 0
|
m_SortingOrder: 0
|
||||||
|
--- !u!1 &5891448228460718789
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 7232062429697756631}
|
||||||
|
- component: {fileID: 4005035351161617691}
|
||||||
|
- component: {fileID: 2711066872819592805}
|
||||||
|
m_Layer: 5
|
||||||
|
m_Name: RawImage
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!224 &7232062429697756631
|
||||||
|
RectTransform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 5891448228460718789}
|
||||||
|
m_LocalRotation: {x: -0, y: -0, z: -0.7071068, w: 0.7071068}
|
||||||
|
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||||
|
m_LocalScale: {x: 0.2, y: 0.2, z: 1}
|
||||||
|
m_Children:
|
||||||
|
- {fileID: 3484774896235331638}
|
||||||
|
m_Father: {fileID: 3263110947046999335}
|
||||||
|
m_RootOrder: 0
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: -90}
|
||||||
|
m_AnchorMin: {x: 0.5, y: 0.5}
|
||||||
|
m_AnchorMax: {x: 0.5, y: 0.5}
|
||||||
|
m_AnchoredPosition: {x: 0, y: 6.21}
|
||||||
|
m_SizeDelta: {x: 9, y: 11}
|
||||||
|
m_Pivot: {x: 0.5, y: 0.5}
|
||||||
|
--- !u!222 &4005035351161617691
|
||||||
|
CanvasRenderer:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 5891448228460718789}
|
||||||
|
m_CullTransparentMesh: 0
|
||||||
|
--- !u!114 &2711066872819592805
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 5891448228460718789}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 1344c3c82d62a2a41a3576d8abb8e3ea, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
m_Material: {fileID: 0}
|
||||||
|
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||||
|
m_RaycastTarget: 1
|
||||||
|
m_Maskable: 1
|
||||||
|
m_OnCullStateChanged:
|
||||||
|
m_PersistentCalls:
|
||||||
|
m_Calls: []
|
||||||
|
m_Texture: {fileID: 2800000, guid: 9085ed0c58902784f8c621e2bddbdf09, type: 3}
|
||||||
|
m_UVRect:
|
||||||
|
serializedVersion: 2
|
||||||
|
x: 0
|
||||||
|
y: 0
|
||||||
|
width: 1
|
||||||
|
height: 1
|
||||||
|
--- !u!1 &6188776600012167111
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 8104960197897296327}
|
||||||
|
- component: {fileID: 7522622987176725668}
|
||||||
|
- component: {fileID: 3879750503044875482}
|
||||||
|
- component: {fileID: 1318442293639371974}
|
||||||
|
m_Layer: 5
|
||||||
|
m_Name: Canvas
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!224 &8104960197897296327
|
||||||
|
RectTransform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 6188776600012167111}
|
||||||
|
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
|
||||||
|
m_LocalPosition: {x: 0, y: 0, z: 0}
|
||||||
|
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||||
|
m_Children:
|
||||||
|
- {fileID: 3263110947046999335}
|
||||||
|
m_Father: {fileID: 8425345772495695667}
|
||||||
|
m_RootOrder: 2
|
||||||
|
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_SizeDelta: {x: 100, y: 100}
|
||||||
|
m_Pivot: {x: 0.5, y: 0.5}
|
||||||
|
--- !u!223 &7522622987176725668
|
||||||
|
Canvas:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 6188776600012167111}
|
||||||
|
m_Enabled: 1
|
||||||
|
serializedVersion: 3
|
||||||
|
m_RenderMode: 2
|
||||||
|
m_Camera: {fileID: 0}
|
||||||
|
m_PlaneDistance: 100
|
||||||
|
m_PixelPerfect: 0
|
||||||
|
m_ReceivesEvents: 1
|
||||||
|
m_OverrideSorting: 0
|
||||||
|
m_OverridePixelPerfect: 0
|
||||||
|
m_SortingBucketNormalizedSize: 0
|
||||||
|
m_AdditionalShaderChannelsFlag: 0
|
||||||
|
m_SortingLayerID: 0
|
||||||
|
m_SortingOrder: 0
|
||||||
|
m_TargetDisplay: 0
|
||||||
|
--- !u!114 &3879750503044875482
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 6188776600012167111}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 0cd44c1031e13a943bb63640046fad76, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
m_UiScaleMode: 0
|
||||||
|
m_ReferencePixelsPerUnit: 100
|
||||||
|
m_ScaleFactor: 1
|
||||||
|
m_ReferenceResolution: {x: 800, y: 600}
|
||||||
|
m_ScreenMatchMode: 0
|
||||||
|
m_MatchWidthOrHeight: 0
|
||||||
|
m_PhysicalUnit: 3
|
||||||
|
m_FallbackScreenDPI: 96
|
||||||
|
m_DefaultSpriteDPI: 96
|
||||||
|
m_DynamicPixelsPerUnit: 1
|
||||||
|
--- !u!114 &1318442293639371974
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 6188776600012167111}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: dc42784cf147c0c48a680349fa168899, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
m_IgnoreReversedGraphics: 1
|
||||||
|
m_BlockingObjects: 0
|
||||||
|
m_BlockingMask:
|
||||||
|
serializedVersion: 2
|
||||||
|
m_Bits: 4294967295
|
||||||
--- !u!1 &8425345772495991569
|
--- !u!1 &8425345772495991569
|
||||||
GameObject:
|
GameObject:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
|
@ -119,9 +404,10 @@ GameObject:
|
||||||
m_Component:
|
m_Component:
|
||||||
- component: {fileID: 8425345772495695667}
|
- component: {fileID: 8425345772495695667}
|
||||||
- component: {fileID: 9146920905969325188}
|
- component: {fileID: 9146920905969325188}
|
||||||
|
- component: {fileID: -486169505435808668}
|
||||||
m_Layer: 0
|
m_Layer: 0
|
||||||
m_Name: "\u91CD\u70B9\u653B\u51FB\u76EE\u68071"
|
m_Name: "\u91CD\u70B9\u653B\u51FB\u76EE\u68071"
|
||||||
m_TagString: Untagged
|
m_TagString: AttackTarget
|
||||||
m_Icon: {fileID: 0}
|
m_Icon: {fileID: 0}
|
||||||
m_NavMeshLayer: 0
|
m_NavMeshLayer: 0
|
||||||
m_StaticEditorFlags: 0
|
m_StaticEditorFlags: 0
|
||||||
|
@ -139,6 +425,7 @@ Transform:
|
||||||
m_Children:
|
m_Children:
|
||||||
- {fileID: 8425345772495695665}
|
- {fileID: 8425345772495695665}
|
||||||
- {fileID: 404141722055020978}
|
- {fileID: 404141722055020978}
|
||||||
|
- {fileID: 8104960197897296327}
|
||||||
m_Father: {fileID: 0}
|
m_Father: {fileID: 0}
|
||||||
m_RootOrder: 0
|
m_RootOrder: 0
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
@ -159,3 +446,17 @@ MonoBehaviour:
|
||||||
x: 0
|
x: 0
|
||||||
y: 0
|
y: 0
|
||||||
z: 0
|
z: 0
|
||||||
|
--- !u!114 &-486169505435808668
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 8425345772495991571}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 0e0ba15c2e152f74d80232cb3ddeaa3d, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
|
HP: 100
|
||||||
|
KeyObjectiveUI: {fileID: 3263110947046999335}
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
127.0.0.1:48888
|
192.168.107.15:48888
|
|
@ -1 +1 @@
|
||||||
127.0.0.1
|
192.168.107.15
|
|
@ -6,8 +6,14 @@ using System.Collections;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 微波武器
|
||||||
|
/// </summary>
|
||||||
public class Microwaveweapon : MonoBehaviour
|
public class Microwaveweapon : MonoBehaviour
|
||||||
{
|
{
|
||||||
|
/// <summary>
|
||||||
|
///
|
||||||
|
/// </summary>
|
||||||
public EquipmentCommon equipment;
|
public EquipmentCommon equipment;
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 把自身对象存到链表
|
/// 把自身对象存到链表
|
||||||
|
@ -60,14 +66,16 @@ public class Microwaveweapon : MonoBehaviour
|
||||||
public GameObject microwavemoder;
|
public GameObject microwavemoder;
|
||||||
public GameObject microwavepoint;
|
public GameObject microwavepoint;
|
||||||
public Transform miceopos;//看向无人机和打击无人机
|
public Transform miceopos;//看向无人机和打击无人机
|
||||||
public GameObject InnerLaserlineRendererPrefab1;//用来发射微波激光武器
|
/// <summary>
|
||||||
public GameObject OuterLaserlineRendererPrefab1;//用来绘制射线的
|
/// 微博显示
|
||||||
public LineRenderer InnerLaserlineRenderer1;
|
/// </summary>
|
||||||
public LineRenderer OuterLaserlineRenderer1;
|
public MicrowaveweaponAttack microblog;
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 微波武器发射的速度
|
/// 微波武器发射的速度
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public float micspeed = 20;
|
public float micspeed = 20;
|
||||||
|
|
||||||
|
public float micdistance = 0;
|
||||||
#endregion
|
#endregion
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 接收每次间隔打击时间
|
/// 接收每次间隔打击时间
|
||||||
|
@ -87,26 +95,7 @@ public class Microwaveweapon : MonoBehaviour
|
||||||
MicrowaveweaponList.Add(this);
|
MicrowaveweaponList.Add(this);
|
||||||
// 订阅布尔值变化事件
|
// 订阅布尔值变化事件
|
||||||
OnActivationChanged += OnActivationChangedHandler;
|
OnActivationChanged += OnActivationChangedHandler;
|
||||||
//微波武器进攻的地方
|
|
||||||
GameObject sendgame = Instantiate(InnerLaserlineRendererPrefab1);
|
|
||||||
sendgame.transform.position = Vector3.zero;
|
|
||||||
InnerLaserlineRenderer1 = sendgame.GetComponent<LineRenderer>();
|
|
||||||
if (InnerLaserlineRenderer1)
|
|
||||||
{
|
|
||||||
InnerLaserlineRenderer1.positionCount = 2;
|
|
||||||
InnerLaserlineRenderer1.SetPosition(0, microwavepoint.transform.position);
|
|
||||||
InnerLaserlineRenderer1.SetPosition(1, microwavepoint.transform.position);
|
|
||||||
}
|
|
||||||
|
|
||||||
GameObject sendsgames = Instantiate(OuterLaserlineRendererPrefab1);
|
|
||||||
sendsgames.transform.position = Vector3.zero;
|
|
||||||
OuterLaserlineRenderer1 = sendsgames.GetComponent<LineRenderer>();
|
|
||||||
if (OuterLaserlineRenderer1)
|
|
||||||
{
|
|
||||||
OuterLaserlineRenderer1.positionCount = 2;
|
|
||||||
OuterLaserlineRenderer1.SetPosition(0, microwavepoint.transform.position);
|
|
||||||
OuterLaserlineRenderer1.SetPosition(1, microwavepoint.transform.position);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 演练是否开始开关
|
/// 演练是否开始开关
|
||||||
|
@ -152,7 +141,8 @@ public class Microwaveweapon : MonoBehaviour
|
||||||
{
|
{
|
||||||
yield return new WaitForSeconds(microwtimer);
|
yield return new WaitForSeconds(microwtimer);
|
||||||
Debug.LogError("攻击了");
|
Debug.LogError("攻击了");
|
||||||
if (microwtimer>0&&miceopos!=null)
|
//if (microwtimer>0&&miceopos!=null)
|
||||||
|
if (miceopos!=null)
|
||||||
{
|
{
|
||||||
Launchattack();
|
Launchattack();
|
||||||
var newdata = Getmicdata();
|
var newdata = Getmicdata();
|
||||||
|
@ -189,6 +179,7 @@ public class Microwaveweapon : MonoBehaviour
|
||||||
break;
|
break;
|
||||||
case "干扰距离:":
|
case "干扰距离:":
|
||||||
Microwaveinterferencedistance = weaponitemone[i].para_value;
|
Microwaveinterferencedistance = weaponitemone[i].para_value;
|
||||||
|
micdistance = float.Parse(Microwaveinterferencedistance);
|
||||||
break;
|
break;
|
||||||
case "干扰角度:":
|
case "干扰角度:":
|
||||||
MicrowaveinterferenceAngle = weaponitemone[i].para_value;
|
MicrowaveinterferenceAngle = weaponitemone[i].para_value;
|
||||||
|
@ -220,16 +211,7 @@ public class Microwaveweapon : MonoBehaviour
|
||||||
{
|
{
|
||||||
if (miceopos!=null)
|
if (miceopos!=null)
|
||||||
{
|
{
|
||||||
if (InnerLaserlineRenderer1)
|
microblog.MicrowaveDisplay(micdistance / 10);
|
||||||
{
|
|
||||||
InnerLaserlineRenderer1.SetPosition(0, microwavepoint.transform.position);
|
|
||||||
InnerLaserlineRenderer1.SetPosition(1, miceopos.transform.position);
|
|
||||||
}
|
|
||||||
if (OuterLaserlineRenderer1)
|
|
||||||
{
|
|
||||||
OuterLaserlineRenderer1.SetPosition(0, microwavepoint.transform.position);
|
|
||||||
OuterLaserlineRenderer1.SetPosition(1, miceopos.transform.position);
|
|
||||||
}
|
|
||||||
Closeattack(miceopos);
|
Closeattack(miceopos);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -277,37 +259,21 @@ public class Microwaveweapon : MonoBehaviour
|
||||||
public IEnumerator Offlaserstrike()
|
public IEnumerator Offlaserstrike()
|
||||||
{
|
{
|
||||||
yield return new WaitForSeconds(1f);
|
yield return new WaitForSeconds(1f);
|
||||||
if (InnerLaserlineRenderer1)
|
microblog.MicrowaveDisplay(0);
|
||||||
{
|
|
||||||
InnerLaserlineRenderer1.SetPosition(0, microwavepoint.transform.position);//射线起点位置
|
|
||||||
InnerLaserlineRenderer1.SetPosition(1, microwavepoint.transform.position);//射线终点位置
|
|
||||||
}
|
|
||||||
if (OuterLaserlineRenderer1)
|
|
||||||
{
|
|
||||||
OuterLaserlineRenderer1.SetPosition(0, microwavepoint.transform.position);//射线起点位置
|
|
||||||
OuterLaserlineRenderer1.SetPosition(1, microwavepoint.transform.position);//射线终点位置
|
|
||||||
}
|
|
||||||
ismicow = false;
|
ismicow = false;
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 微波武器激光下发
|
/// 接受数据微波武器激光下发
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public void Microwavetransmission(string[] data)
|
public void Microwavetransmission(string[] data)
|
||||||
{
|
{
|
||||||
//接收激光下发的位置
|
//接收激光下发的位置
|
||||||
Vector3 vector =new Vector3(float.Parse(data[2]), float.Parse(data[3]),float.Parse(data[4]));
|
Vector3 vector =new Vector3(float.Parse(data[2]), float.Parse(data[3]),float.Parse(data[4]));
|
||||||
microwavemoder.transform.DOLookAt(vector, 0.1f).SetEase(Ease.Linear);
|
microwavemoder.transform.DOLookAt(vector, 0.1f).SetEase(Ease.Linear).OnComplete(() => {
|
||||||
if (InnerLaserlineRenderer1)
|
microblog.MicrowaveDisplay(micdistance / 10);
|
||||||
{
|
|
||||||
InnerLaserlineRenderer1.SetPosition(0, microwavepoint.transform.position);
|
|
||||||
InnerLaserlineRenderer1.SetPosition(1, vector);
|
|
||||||
}
|
|
||||||
if (OuterLaserlineRenderer1)
|
|
||||||
{
|
|
||||||
OuterLaserlineRenderer1.SetPosition(0, microwavepoint.transform.position);
|
|
||||||
OuterLaserlineRenderer1.SetPosition(1,vector);
|
|
||||||
}
|
|
||||||
StartCoroutine(Offlaserstrike());
|
StartCoroutine(Offlaserstrike());
|
||||||
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
private void OnDestroy()
|
private void OnDestroy()
|
||||||
{
|
{
|
||||||
|
|
|
@ -0,0 +1,24 @@
|
||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using UnityEngine;
|
||||||
|
using DG.Tweening;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 微波武器攻击
|
||||||
|
/// </summary>
|
||||||
|
public class MicrowaveweaponAttack : MonoBehaviour
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// 微波武器
|
||||||
|
/// </summary>
|
||||||
|
public Microwaveweapon microwaveweapon;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 微波显示
|
||||||
|
/// </summary>
|
||||||
|
public void MicrowaveDisplay(float show)
|
||||||
|
{
|
||||||
|
transform.DOScaleZ(show, 1);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,11 @@
|
||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 570cc7737e6f63b45ac54c3bb1a7ec4c
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
|
@ -337,6 +337,7 @@ public class Scenariopage : MonoBehaviour
|
||||||
void Start()
|
void Start()
|
||||||
{
|
{
|
||||||
//调用接口
|
//调用接口
|
||||||
|
Debug.Log("Url_Action..:" + Url_Action);
|
||||||
StartCoroutine(Post1(Url_Action, (bol, str) =>
|
StartCoroutine(Post1(Url_Action, (bol, str) =>
|
||||||
{
|
{
|
||||||
Debug.Log(str);
|
Debug.Log(str);
|
||||||
|
|
|
@ -134,7 +134,6 @@ public class Spectrumdetection : MonoBehaviour
|
||||||
microwaveweapon.ismicow = true;
|
microwaveweapon.ismicow = true;
|
||||||
microwaveweapon.miceopos = unmannedAerialVehicle.transform;
|
microwaveweapon.miceopos = unmannedAerialVehicle.transform;
|
||||||
microwaveweapon.Orientation();
|
microwaveweapon.Orientation();
|
||||||
microwaveweapon.Orientation();
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -0,0 +1,78 @@
|
||||||
|
using DG.Tweening;
|
||||||
|
using System.Collections;
|
||||||
|
using System.Collections.Generic;
|
||||||
|
using UnityEngine;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 重点保护目标
|
||||||
|
/// </summary>
|
||||||
|
public class HighPriorityTarget : MonoBehaviour
|
||||||
|
{
|
||||||
|
/// <summary>
|
||||||
|
/// 重点保护目标集合
|
||||||
|
/// </summary>
|
||||||
|
public static List<HighPriorityTarget> HighPriorityTargets = new List<HighPriorityTarget>();
|
||||||
|
/// <summary>
|
||||||
|
/// 重点设备完整度
|
||||||
|
/// </summary>
|
||||||
|
public static float EquipmentIntegrity = 1;
|
||||||
|
|
||||||
|
|
||||||
|
#region 单体保护目标属性
|
||||||
|
/// <summary>
|
||||||
|
/// 单体保护目标属性血量
|
||||||
|
/// </summary>
|
||||||
|
public float HP = 100;
|
||||||
|
|
||||||
|
#endregion
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 重点目标UI看向摄像机
|
||||||
|
/// </summary>
|
||||||
|
public Transform KeyObjectiveUI;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 爆炸预制体
|
||||||
|
/// </summary>
|
||||||
|
public GameObject explodePrefab;
|
||||||
|
// Start is called before the first frame update
|
||||||
|
void Start()
|
||||||
|
{
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
// Update is called once per frame
|
||||||
|
void Update()
|
||||||
|
{
|
||||||
|
if (Camera.main)
|
||||||
|
KeyObjectiveUI.transform.LookAt(Camera.main.transform);
|
||||||
|
}
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// 被攻击
|
||||||
|
/// </summary>
|
||||||
|
public void BeAssaulted()
|
||||||
|
{
|
||||||
|
HP -= 10;
|
||||||
|
if (HP <= 0)
|
||||||
|
{
|
||||||
|
GameObject Bao1 = Instantiate(explodePrefab, transform);
|
||||||
|
GameObject Bao2 = Instantiate(explodePrefab, transform);
|
||||||
|
GameObject Bao3 = Instantiate(explodePrefab, transform);
|
||||||
|
Vector3 v1 = new Vector3(Random.Range(0f, 1.5f), 0, Random.Range(0f, 1.5f));
|
||||||
|
Vector3 v2 = new Vector3(Random.Range(0f, 1.5f), 0, Random.Range(0f, 1.5f));
|
||||||
|
Vector3 v3 = new Vector3(Random.Range(0f, 1.5f), 0, Random.Range(0f, 1.5f));
|
||||||
|
Bao1.transform.localPosition = Vector3.zero + v1;
|
||||||
|
Bao2.transform.localPosition = Vector3.zero + v2;
|
||||||
|
Bao3.transform.localPosition = Vector3.zero + v3;
|
||||||
|
Bao1.transform.SetParent(null);
|
||||||
|
Bao2.transform.SetParent(null);
|
||||||
|
Bao3.transform.SetParent(null);
|
||||||
|
Bao1.SetActive(true);
|
||||||
|
Bao2.SetActive(true);
|
||||||
|
Bao3.SetActive(true);
|
||||||
|
Destroy(gameObject);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
|
@ -0,0 +1,11 @@
|
||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 0e0ba15c2e152f74d80232cb3ddeaa3d
|
||||||
|
MonoImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
serializedVersion: 2
|
||||||
|
defaultReferences: []
|
||||||
|
executionOrder: 0
|
||||||
|
icon: {instanceID: 0}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
|
@ -9,7 +9,7 @@ using Newtonsoft.Json.Linq;
|
||||||
public static class InterfaceManager
|
public static class InterfaceManager
|
||||||
{
|
{
|
||||||
|
|
||||||
private static string _IP;
|
private static string _IP = "192.168.107.15";
|
||||||
public static string IP
|
public static string IP
|
||||||
{
|
{
|
||||||
get { return _IP; }
|
get { return _IP; }
|
||||||
|
@ -19,7 +19,7 @@ public static class InterfaceManager
|
||||||
_IP = value;
|
_IP = value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
private static string _Port;
|
private static string _Port = "48888";
|
||||||
public static string Port
|
public static string Port
|
||||||
{
|
{
|
||||||
get { return _Port; }
|
get { return _Port; }
|
||||||
|
|
|
@ -305,13 +305,91 @@ public class TerrestrialRadioInterferenceManger : MonoBehaviour
|
||||||
{
|
{
|
||||||
if (colliders[i].transform.tag == "WRJ")
|
if (colliders[i].transform.tag == "WRJ")
|
||||||
{
|
{
|
||||||
|
UnmannedAerialVehicle unmannedAerialVehicle = null;
|
||||||
|
if (colliders[i].GetComponent<UnmannedAerialVehicle>())
|
||||||
|
{
|
||||||
|
unmannedAerialVehicle = colliders[i].GetComponent<UnmannedAerialVehicle>();
|
||||||
|
}
|
||||||
UnmannedAerialVehicleManage unmannedAerialVehicleManage = null;
|
UnmannedAerialVehicleManage unmannedAerialVehicleManage = null;
|
||||||
if (colliders[i].GetComponent<UnmannedAerialVehicleManage>())
|
if (colliders[i].GetComponent<UnmannedAerialVehicleManage>())
|
||||||
{
|
{
|
||||||
unmannedAerialVehicleManage = colliders[i].GetComponent<UnmannedAerialVehicleManage>();
|
unmannedAerialVehicleManage = colliders[i].GetComponent<UnmannedAerialVehicleManage>();
|
||||||
}
|
}
|
||||||
|
if (TransmittedPower == "10~30W" || TransmittedPower == "30~50W" && unmannedAerialVehicleManage != null)
|
||||||
|
{
|
||||||
|
Debug.LogError("发射功率进来了1");
|
||||||
|
Debug.LogError(unmannedAerialVehicleManage.satellitePositioningFrequency);
|
||||||
|
Debug.LogError(InterferingFrequency);
|
||||||
|
if (unmannedAerialVehicleManage.satellitePositioningFrequency == InterferingFrequency && unmannedAerialVehicleManage != null)
|
||||||
|
{
|
||||||
|
Debug.LogError("相同频率进来了1");
|
||||||
|
Debug.LogError(InterferenceMode);
|
||||||
|
Debug.LogError(unmannedAerialVehicleManage != null);
|
||||||
|
|
||||||
|
if (InterferenceMode == "驱离" && unmannedAerialVehicleManage != null)
|
||||||
|
{
|
||||||
|
Debug.LogError("驱离");
|
||||||
|
|
||||||
|
unmannedAerialVehicleManage.transform.DOKill();
|
||||||
|
unmannedAerialVehicleManage.transform.LookAt(new Vector3(-500, 160, 1600));
|
||||||
|
unmannedAerialVehicleManage.transform.DOMove(new Vector3(-500, 160, 1600), 60);
|
||||||
|
|
||||||
|
}
|
||||||
|
else if (InterferenceMode == "迫降" && unmannedAerialVehicleManage != null)
|
||||||
|
{
|
||||||
|
Debug.LogError("迫降");
|
||||||
|
unmannedAerialVehicleManage.transform.DOKill();
|
||||||
|
//unmannedAerialVehicle.transform.DOKill();
|
||||||
|
//Debug.LogError(unmannedAerialVehicle.name);
|
||||||
|
RaycastHit hit;
|
||||||
|
if (Physics.Raycast(unmannedAerialVehicleManage.transform.position, Vector3.down, out hit, Mathf.Infinity, ground))
|
||||||
|
{
|
||||||
|
if (hit.distance > 1f)
|
||||||
|
{
|
||||||
|
Debug.LogError(hit.distance);
|
||||||
|
|
||||||
|
hit.point = new Vector3(hit.point.x, hit.point.y + 3, hit.point.z);
|
||||||
|
|
||||||
|
unmannedAerialVehicleManage.transform.DOMove(hit.point, 6);
|
||||||
|
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
speed = 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (TransmittedPower == "50~100W" && unmannedAerialVehicleManage != null)
|
||||||
|
{
|
||||||
|
Debug.LogError("功率进来了2");
|
||||||
|
if (unmannedAerialVehicleManage.dataLinkCommunicationFrequency == InterferingFrequency && unmannedAerialVehicleManage != null)
|
||||||
|
{
|
||||||
|
Debug.LogError("频率进来了");
|
||||||
if (unmannedAerialVehicleManage != null)
|
if (unmannedAerialVehicleManage != null)
|
||||||
unmannedAerialVehicleManage.CheckSatellitePositioningFrequency(this.transform, InterferenceMode, TransmittedPower, InterferingFrequency, InterferenceAngle, ground);
|
{
|
||||||
|
Vector3 one = unmannedAerialVehicleManage.transform.position - transform.position;
|
||||||
|
float angue = Vector3.Angle(one, transform.forward);
|
||||||
|
if (float.Parse(InterferenceAngle) >= angue)
|
||||||
|
{
|
||||||
|
//unmannedAerialVehicleManage.transform.DOKill();
|
||||||
|
Debug.LogError("目标出现在范围内");
|
||||||
|
Debug.LogError(unmannedAerialVehicleManage.maximumFlyingSpeed);
|
||||||
|
unmannedAerialVehicleManage.maximumFlyingSpeed = (float.Parse(unmannedAerialVehicleManage.maximumFlyingSpeed) - 5).ToString();
|
||||||
|
Debug.LogError(unmannedAerialVehicleManage.maximumFlyingSpeed);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
|
||||||
|
Debug.LogError("目标没有出现在范围里面");
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -321,7 +399,7 @@ public class TerrestrialRadioInterferenceManger : MonoBehaviour
|
||||||
/// <exception cref="NotImplementedException"></exception>
|
/// <exception cref="NotImplementedException"></exception>
|
||||||
private void Angularrange()
|
private void Angularrange()
|
||||||
{
|
{
|
||||||
Collider[] collider = Physics.OverlapSphere(transform.position, 300);
|
Collider[] collider = Physics.OverlapSphere(transform.position,300);
|
||||||
for (int i = 0; i < collider.Length; i++)
|
for (int i = 0; i < collider.Length; i++)
|
||||||
{
|
{
|
||||||
if (collider[i].transform.tag == "WRJ")
|
if (collider[i].transform.tag == "WRJ")
|
||||||
|
|
|
@ -8,8 +8,6 @@ using AdamSync;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
using static InterfaceManager;
|
using static InterfaceManager;
|
||||||
using Newtonsoft.Json;
|
using Newtonsoft.Json;
|
||||||
using PData;
|
|
||||||
|
|
||||||
public enum WRJModel
|
public enum WRJModel
|
||||||
{
|
{
|
||||||
无人机,
|
无人机,
|
||||||
|
@ -100,11 +98,6 @@ public class UnmannedAerialVehicleManage : MonoBehaviour
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool isEngagedTarget = false;
|
public bool isEngagedTarget = false;
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 光学无人机
|
|
||||||
/// </summary>
|
|
||||||
public Camera gxWRJCamera;
|
|
||||||
|
|
||||||
#region 无人机数据
|
#region 无人机数据
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 续航时间
|
/// 续航时间
|
||||||
|
@ -253,22 +246,6 @@ public class UnmannedAerialVehicleManage : MonoBehaviour
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
public void SwitchWRJModel()
|
|
||||||
{
|
|
||||||
gxWRJCamera.gameObject.SetActive(false);
|
|
||||||
switch (wrjModel)
|
|
||||||
{
|
|
||||||
case WRJModel.光学无人机:
|
|
||||||
gxWRJCamera.gameObject.SetActive(true);
|
|
||||||
break;
|
|
||||||
case WRJModel.电子侦察无人机:
|
|
||||||
break;
|
|
||||||
case WRJModel.自杀式无人机:
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 攻击打击
|
/// 攻击打击
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -287,10 +264,12 @@ public class UnmannedAerialVehicleManage : MonoBehaviour
|
||||||
isEngagedTarget = true;
|
isEngagedTarget = true;
|
||||||
colliders1.ForEach(x => Debug.Log(x.transform.name));
|
colliders1.ForEach(x => Debug.Log(x.transform.name));
|
||||||
int _number = UnityEngine.Random.Range(0, colliders1.Count - 1);
|
int _number = UnityEngine.Random.Range(0, colliders1.Count - 1);
|
||||||
List<UnmannedAerialVehicle> _unmannedAerialVehicles = unmannedAerialVehicles.FindAll(x => x != null && x.gameObject.activeSelf);
|
List<UnmannedAerialVehicle> _unmannedAerialVehicles = unmannedAerialVehicles.FindAll(x => x != null&&x.gameObject.activeSelf);
|
||||||
|
|
||||||
SendMsg(colliders1[_number].transform);
|
SendMsg(colliders1[_number].transform);
|
||||||
for (int i = 0; i < _unmannedAerialVehicles.Count; i++)
|
for (int i = 0; i < _unmannedAerialVehicles.Count; i++)
|
||||||
{
|
{
|
||||||
|
Debug.Log(_unmannedAerialVehicles[i].transform.name);
|
||||||
_unmannedAerialVehicles[i].AttAck(colliders1[_number].transform);
|
_unmannedAerialVehicles[i].AttAck(colliders1[_number].transform);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -348,9 +327,6 @@ public class UnmannedAerialVehicleManage : MonoBehaviour
|
||||||
// Debug.Log(msg);
|
// Debug.Log(msg);
|
||||||
// _ = SyncCreateRoom.SendMessageAsync(msg);
|
// _ = SyncCreateRoom.SendMessageAsync(msg);
|
||||||
//}
|
//}
|
||||||
SenceInfo currentSceneInfo = new SenceInfo();
|
|
||||||
currentSceneInfo = UIBootstrap.Instance.currentSceneInfo.data;
|
|
||||||
//int windSpeed = Mathf.Lerp(0f, 1f, float.Parse(currentSceneInfo.EnvWindSpeed));
|
|
||||||
for (int i = 0; i < weaponitemone.Count; i++)
|
for (int i = 0; i < weaponitemone.Count; i++)
|
||||||
{
|
{
|
||||||
switch (weaponitemone[i].para_name)
|
switch (weaponitemone[i].para_name)
|
||||||
|
@ -363,7 +339,7 @@ public class UnmannedAerialVehicleManage : MonoBehaviour
|
||||||
break;
|
break;
|
||||||
case "最大飞行速度:":
|
case "最大飞行速度:":
|
||||||
maximumFlyingSpeed = weaponitemone[i].para_value;
|
maximumFlyingSpeed = weaponitemone[i].para_value;
|
||||||
|
FireSpeed = float.Parse(maximumFlyingSpeed);
|
||||||
break;
|
break;
|
||||||
case "RCS:":
|
case "RCS:":
|
||||||
RCS = weaponitemone[i].para_value;
|
RCS = weaponitemone[i].para_value;
|
||||||
|
@ -448,107 +424,12 @@ public class UnmannedAerialVehicleManage : MonoBehaviour
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
///根据风得速度改变无人机得速度
|
|
||||||
FireSpeed = float.Parse(maximumFlyingSpeed) / float.Parse(currentSceneInfo.EnvWindSpeed);
|
|
||||||
/////如果风速大于6级,无人机停止飞行
|
|
||||||
if (float.Parse(currentSceneInfo.EnvWindSpeed) * 10 > 6)
|
|
||||||
{
|
|
||||||
FireSpeed = 0;
|
|
||||||
}
|
|
||||||
CheckRSC();
|
|
||||||
if (i == (weaponitemone.Count - 1))
|
if (i == (weaponitemone.Count - 1))
|
||||||
{
|
{
|
||||||
StartCoroutine(WeaponitemoneDataAddition());
|
StartCoroutine(WeaponitemoneDataAddition());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/// <summary>
|
|
||||||
/// 雷达检测无人机身上得RSC
|
|
||||||
/// </summary>
|
|
||||||
public void CheckRSC()
|
|
||||||
{
|
|
||||||
float rcs = float.Parse(RCS);
|
|
||||||
if (rcs <= 0.5 && rcs >= 0.1)
|
|
||||||
{
|
|
||||||
StartCoroutine(ShowRadarTips(0.8f, 2));
|
|
||||||
}
|
|
||||||
else if (rcs >= 0.5f && rcs <= 1)
|
|
||||||
{
|
|
||||||
StartCoroutine(ShowRadarTips(0.4f, 1));
|
|
||||||
}
|
|
||||||
}
|
|
||||||
/// <summary>
|
|
||||||
/// 多少时间在对方雷达界面上显示红色标记
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="minTime"></param>
|
|
||||||
/// <param name="maxTime"></param>
|
|
||||||
/// <returns></returns>
|
|
||||||
private IEnumerator ShowRadarTips(float minTime, float maxTime)
|
|
||||||
{
|
|
||||||
GameObject tips = transform.Find("Minimapwrj").gameObject;
|
|
||||||
while (true)
|
|
||||||
{
|
|
||||||
tips.gameObject.SetActive(false);
|
|
||||||
float time = UnityEngine.Random.Range(minTime, maxTime);
|
|
||||||
yield return new WaitForSeconds(time);
|
|
||||||
tips.gameObject.SetActive(true);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 检测无线电频率
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="interferingFrequency">无线电数据</param>
|
|
||||||
/// <param name="interferenceMode">驱离或者迫降</param>
|
|
||||||
public void CheckSatellitePositioningFrequency(Transform target, string interferenceMode, string transmittedPower, string interferingFrequency, string interferenceAngle, LayerMask ground)
|
|
||||||
{
|
|
||||||
if (transmittedPower == "10~30W" || transmittedPower == "30~50W")
|
|
||||||
{
|
|
||||||
if (satellitePositioningFrequency == interferingFrequency)
|
|
||||||
{
|
|
||||||
if (interferenceMode == "驱离")
|
|
||||||
{
|
|
||||||
transform.DOKill();
|
|
||||||
transform.LookAt(new Vector3(-500, 160, 1600));
|
|
||||||
transform.DOMove(new Vector3(-500, 160, 1600), 60);
|
|
||||||
|
|
||||||
}
|
|
||||||
else if (interferenceMode == "迫降")
|
|
||||||
{
|
|
||||||
transform.DOKill();
|
|
||||||
RaycastHit hit;
|
|
||||||
if (Physics.Raycast(transform.position, Vector3.down, out hit, Mathf.Infinity, ground))
|
|
||||||
{
|
|
||||||
if (hit.distance > 1f)
|
|
||||||
{
|
|
||||||
hit.point = new Vector3(hit.point.x, hit.point.y + 3, hit.point.z);
|
|
||||||
transform.DOMove(hit.point, 6);
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
if (transmittedPower == "50~100W")
|
|
||||||
{
|
|
||||||
if (dataLinkCommunicationFrequency == interferingFrequency)
|
|
||||||
{
|
|
||||||
Vector3 one = transform.position - target.transform.position;
|
|
||||||
float angue = Vector3.Angle(one, target.transform.forward);
|
|
||||||
if (float.Parse(interferenceAngle) >= angue)
|
|
||||||
{
|
|
||||||
maximumFlyingSpeed = (float.Parse(maximumFlyingSpeed) - 5).ToString();
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 单个无人机数据写入
|
/// 单个无人机数据写入
|
||||||
|
@ -576,9 +457,6 @@ public class UnmannedAerialVehicleManage : MonoBehaviour
|
||||||
}
|
}
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
#region 阵型编队
|
#region 阵型编队
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 阵型选择
|
/// 阵型选择
|
||||||
|
@ -818,7 +696,6 @@ public class UnmannedAerialVehicleManage : MonoBehaviour
|
||||||
}
|
}
|
||||||
private void OnDestroy()
|
private void OnDestroy()
|
||||||
{
|
{
|
||||||
StopAllCoroutines();
|
|
||||||
Destroy(airRoute.gameObject);
|
Destroy(airRoute.gameObject);
|
||||||
OnActivationChanged -= OnActivationChangedHandler;
|
OnActivationChanged -= OnActivationChangedHandler;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue