rerer
This commit is contained in:
commit
f203a84fb2
|
@ -32,8 +32,8 @@ Material:
|
|||
- _dispStrength: 1
|
||||
- _overBright: 1
|
||||
m_Colors:
|
||||
- _AmbientTint: {r: 1, g: 1, b: 1, a: 1}
|
||||
- _Color: {r: 0.5, g: 0.49803922, b: 0.49215686, a: 0.2}
|
||||
- _AmbientTint: {r: 0, g: 0, b: 0, a: 1}
|
||||
- _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}
|
||||
- _PrimaryTint: {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_Children:
|
||||
- {fileID: 1929796912102659678}
|
||||
- {fileID: 2036827053615246670}
|
||||
m_Father: {fileID: 4884441768212777941}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
|
@ -48,7 +49,7 @@ GameObject:
|
|||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
m_IsActive: 0
|
||||
--- !u!4 &1929796912102659678
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
|
@ -235,3 +236,78 @@ BoxCollider:
|
|||
serializedVersion: 2
|
||||
m_Size: {x: 0.42641535, y: 0.4577637, z: 0.48782435}
|
||||
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_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
m_IsActive: 0
|
||||
--- !u!4 &5701123941140402312
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
|
@ -5785,6 +5785,7 @@ Transform:
|
|||
m_LocalScale: {x: 10, y: 10, z: 10}
|
||||
m_Children:
|
||||
- {fileID: 5701123941140402312}
|
||||
- {fileID: 8023347097485828900}
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: -30, z: 0}
|
||||
|
@ -6003,3 +6004,78 @@ MeshRenderer:
|
|||
m_SortingLayerID: 0
|
||||
m_SortingLayer: 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
|
||||
%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
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
|
@ -26,7 +140,7 @@ Transform:
|
|||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 5097883802883278075}
|
||||
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_Children: []
|
||||
m_Father: {fileID: 8425345772495695667}
|
||||
|
@ -79,6 +193,177 @@ MeshRenderer:
|
|||
m_SortingLayerID: 0
|
||||
m_SortingLayer: 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
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
|
@ -119,9 +404,10 @@ GameObject:
|
|||
m_Component:
|
||||
- component: {fileID: 8425345772495695667}
|
||||
- component: {fileID: 9146920905969325188}
|
||||
- component: {fileID: -486169505435808668}
|
||||
m_Layer: 0
|
||||
m_Name: "\u91CD\u70B9\u653B\u51FB\u76EE\u68071"
|
||||
m_TagString: Untagged
|
||||
m_TagString: AttackTarget
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
|
@ -139,6 +425,7 @@ Transform:
|
|||
m_Children:
|
||||
- {fileID: 8425345772495695665}
|
||||
- {fileID: 404141722055020978}
|
||||
- {fileID: 8104960197897296327}
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
|
@ -159,3 +446,17 @@ MonoBehaviour:
|
|||
x: 0
|
||||
y: 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 UnityEngine;
|
||||
|
||||
/// <summary>
|
||||
/// 微波武器
|
||||
/// </summary>
|
||||
public class Microwaveweapon : MonoBehaviour
|
||||
{
|
||||
/// <summary>
|
||||
///
|
||||
/// </summary>
|
||||
public EquipmentCommon equipment;
|
||||
/// <summary>
|
||||
/// 把自身对象存到链表
|
||||
|
@ -60,14 +66,16 @@ public class Microwaveweapon : MonoBehaviour
|
|||
public GameObject microwavemoder;
|
||||
public GameObject microwavepoint;
|
||||
public Transform miceopos;//看向无人机和打击无人机
|
||||
public GameObject InnerLaserlineRendererPrefab1;//用来发射微波激光武器
|
||||
public GameObject OuterLaserlineRendererPrefab1;//用来绘制射线的
|
||||
public LineRenderer InnerLaserlineRenderer1;
|
||||
public LineRenderer OuterLaserlineRenderer1;
|
||||
/// <summary>
|
||||
/// 微博显示
|
||||
/// </summary>
|
||||
public MicrowaveweaponAttack microblog;
|
||||
/// <summary>
|
||||
/// 微波武器发射的速度
|
||||
/// </summary>
|
||||
public float micspeed = 20;
|
||||
|
||||
public float micdistance = 0;
|
||||
#endregion
|
||||
/// <summary>
|
||||
/// 接收每次间隔打击时间
|
||||
|
@ -87,26 +95,7 @@ public class Microwaveweapon : MonoBehaviour
|
|||
MicrowaveweaponList.Add(this);
|
||||
// 订阅布尔值变化事件
|
||||
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>
|
||||
/// 演练是否开始开关
|
||||
|
@ -152,7 +141,8 @@ public class Microwaveweapon : MonoBehaviour
|
|||
{
|
||||
yield return new WaitForSeconds(microwtimer);
|
||||
Debug.LogError("攻击了");
|
||||
if (microwtimer>0&&miceopos!=null)
|
||||
//if (microwtimer>0&&miceopos!=null)
|
||||
if (miceopos!=null)
|
||||
{
|
||||
Launchattack();
|
||||
var newdata = Getmicdata();
|
||||
|
@ -189,6 +179,7 @@ public class Microwaveweapon : MonoBehaviour
|
|||
break;
|
||||
case "干扰距离:":
|
||||
Microwaveinterferencedistance = weaponitemone[i].para_value;
|
||||
micdistance = float.Parse(Microwaveinterferencedistance);
|
||||
break;
|
||||
case "干扰角度:":
|
||||
MicrowaveinterferenceAngle = weaponitemone[i].para_value;
|
||||
|
@ -220,16 +211,7 @@ public class Microwaveweapon : MonoBehaviour
|
|||
{
|
||||
if (miceopos!=null)
|
||||
{
|
||||
if (InnerLaserlineRenderer1)
|
||||
{
|
||||
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);
|
||||
}
|
||||
microblog.MicrowaveDisplay(micdistance / 10);
|
||||
Closeattack(miceopos);
|
||||
}
|
||||
}
|
||||
|
@ -277,37 +259,21 @@ public class Microwaveweapon : MonoBehaviour
|
|||
public IEnumerator Offlaserstrike()
|
||||
{
|
||||
yield return new WaitForSeconds(1f);
|
||||
if (InnerLaserlineRenderer1)
|
||||
{
|
||||
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);//射线终点位置
|
||||
}
|
||||
microblog.MicrowaveDisplay(0);
|
||||
ismicow = false;
|
||||
}
|
||||
/// <summary>
|
||||
/// 微波武器激光下发
|
||||
/// 接受数据微波武器激光下发
|
||||
/// </summary>
|
||||
public void Microwavetransmission(string[] data)
|
||||
{
|
||||
//接收激光下发的位置
|
||||
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);
|
||||
if (InnerLaserlineRenderer1)
|
||||
{
|
||||
InnerLaserlineRenderer1.SetPosition(0, microwavepoint.transform.position);
|
||||
InnerLaserlineRenderer1.SetPosition(1, vector);
|
||||
}
|
||||
if (OuterLaserlineRenderer1)
|
||||
{
|
||||
OuterLaserlineRenderer1.SetPosition(0, microwavepoint.transform.position);
|
||||
OuterLaserlineRenderer1.SetPosition(1,vector);
|
||||
}
|
||||
StartCoroutine(Offlaserstrike());
|
||||
microwavemoder.transform.DOLookAt(vector, 0.1f).SetEase(Ease.Linear).OnComplete(() => {
|
||||
microblog.MicrowaveDisplay(micdistance / 10);
|
||||
StartCoroutine(Offlaserstrike());
|
||||
});
|
||||
|
||||
}
|
||||
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()
|
||||
{
|
||||
//调用接口
|
||||
Debug.Log("Url_Action..:" + Url_Action);
|
||||
StartCoroutine(Post1(Url_Action, (bol, str) =>
|
||||
{
|
||||
Debug.Log(str);
|
||||
|
|
|
@ -134,7 +134,6 @@ public class Spectrumdetection : MonoBehaviour
|
|||
microwaveweapon.ismicow = true;
|
||||
microwaveweapon.miceopos = unmannedAerialVehicle.transform;
|
||||
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
|
||||
{
|
||||
|
||||
private static string _IP;
|
||||
private static string _IP = "192.168.107.15";
|
||||
public static string IP
|
||||
{
|
||||
get { return _IP; }
|
||||
|
@ -19,7 +19,7 @@ public static class InterfaceManager
|
|||
_IP = value;
|
||||
}
|
||||
}
|
||||
private static string _Port;
|
||||
private static string _Port = "48888";
|
||||
public static string Port
|
||||
{
|
||||
get { return _Port; }
|
||||
|
|
|
@ -145,6 +145,7 @@ public class LaserFireControlPlatformManger : MonoBehaviour
|
|||
/// 激光火炮打击时间
|
||||
/// </summary>
|
||||
public static float lasertime;
|
||||
public float lasertimes;
|
||||
/// <summary>
|
||||
/// 判断物体是否在相机里面
|
||||
/// </summary>
|
||||
|
@ -187,6 +188,10 @@ public class LaserFireControlPlatformManger : MonoBehaviour
|
|||
|
||||
void Update()
|
||||
{
|
||||
if (lasertime>0)
|
||||
{
|
||||
lasertime -= Time.deltaTime;
|
||||
}
|
||||
//if (UIBootstrap.Instance.GetRoleByIDPracticeId(GlobalFlag.practiceSeatId) != "0"&&Input.GetMouseButtonDown(0))
|
||||
//{
|
||||
// if (!EventSystem.current.IsPointerOverGameObject())
|
||||
|
@ -195,6 +200,7 @@ public class LaserFireControlPlatformManger : MonoBehaviour
|
|||
// Front = true;
|
||||
// }
|
||||
//}
|
||||
|
||||
if (UIBootstrap.Instance.GetRoleByIDPracticeId(GlobalFlag.practiceSeatId) != "0" && Input.GetMouseButtonDown(0))
|
||||
{
|
||||
Ray ray = Camera.main.ScreenPointToRay(Input.mousePosition);
|
||||
|
@ -298,6 +304,7 @@ public class LaserFireControlPlatformManger : MonoBehaviour
|
|||
case "储能间隔时间:":
|
||||
StorageIntervalTime = weaponitemone[i].para_value;
|
||||
lasertime = float.Parse(StorageIntervalTime);
|
||||
lasertimes = float.Parse(StorageIntervalTime);
|
||||
break;
|
||||
case "毁伤目标累积作用时间:":
|
||||
CumulativeActionTimeOfDamageTarget = weaponitemone[i].para_value;
|
||||
|
@ -549,6 +556,10 @@ public class LaserFireControlPlatformManger : MonoBehaviour
|
|||
OuterLaserlineRenderer.SetPosition(0, LaserPoint.transform.position); // 设置线段起点为物体位置
|
||||
OuterLaserlineRenderer.SetPosition(1, LaserPoint.transform.position); // 设置线段终点为目标点
|
||||
}
|
||||
if (lasertimes!=0)
|
||||
{
|
||||
lasertime = lasertimes;
|
||||
}
|
||||
isLasing = false;
|
||||
}
|
||||
|
||||
|
|
|
@ -121,7 +121,7 @@ public class RadarManger : MonoBehaviour
|
|||
/// <summary>
|
||||
/// 计时火炮蓄能时间
|
||||
/// </summary>
|
||||
public float radartime;
|
||||
public float radartime=0;
|
||||
void Start()
|
||||
{
|
||||
Mincamera = GameObject.Find("Minimap Camera").GetComponent<Camera>();
|
||||
|
@ -305,19 +305,18 @@ public class RadarManger : MonoBehaviour
|
|||
UnmannedAerialVehicle unmannedAerialVehicle = colliders2[i].GetComponent<UnmannedAerialVehicle>();
|
||||
if (unmannedAerialVehicle)
|
||||
{
|
||||
radartime += Time.deltaTime;
|
||||
if (radartime>=LaserFireControlPlatformManger.lasertime)
|
||||
if (radartime == LaserFireControlPlatformManger.lasertime)
|
||||
{
|
||||
Debug.Log("今来了");
|
||||
LaserFireControlPlatformManger laserFireControlPlatformManger = LaserFireControlPlatformManger.laserFireControlPlatformMangers.Find(x => (x != null && x.isLasing == false));
|
||||
radartime = 0;
|
||||
if (laserFireControlPlatformManger)
|
||||
if (laserFireControlPlatformManger)
|
||||
{
|
||||
laserFireControlPlatformManger.isLasing = true;
|
||||
//Debug.Log(laserFireControlPlatformManger.transform.name + "攻击无人机: " + unmannedAerialVehicle.transform.name);
|
||||
laserFireControlPlatformManger.targetPoint = unmannedAerialVehicle.transform;
|
||||
laserFireControlPlatformManger.Crosshair();
|
||||
laserFireControlPlatformManger.Lasing();
|
||||
radartime = 0;
|
||||
}
|
||||
}
|
||||
number++;
|
||||
|
|
|
@ -150,7 +150,7 @@ public class TerrestrialRadioInterferenceManger : MonoBehaviour
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
#region 启动暂停
|
||||
/// <summary>
|
||||
/// 导条变化调用
|
||||
|
@ -305,13 +305,91 @@ public class TerrestrialRadioInterferenceManger : MonoBehaviour
|
|||
{
|
||||
if (colliders[i].transform.tag == "WRJ")
|
||||
{
|
||||
UnmannedAerialVehicle unmannedAerialVehicle = null;
|
||||
if (colliders[i].GetComponent<UnmannedAerialVehicle>())
|
||||
{
|
||||
unmannedAerialVehicle = colliders[i].GetComponent<UnmannedAerialVehicle>();
|
||||
}
|
||||
UnmannedAerialVehicleManage unmannedAerialVehicleManage = null;
|
||||
if (colliders[i].GetComponent<UnmannedAerialVehicleManage>())
|
||||
{
|
||||
unmannedAerialVehicleManage = colliders[i].GetComponent<UnmannedAerialVehicleManage>();
|
||||
}
|
||||
if (unmannedAerialVehicleManage != null)
|
||||
unmannedAerialVehicleManage.CheckSatellitePositioningFrequency(this.transform, InterferenceMode, TransmittedPower, InterferingFrequency, InterferenceAngle, ground);
|
||||
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)
|
||||
{
|
||||
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>
|
||||
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++)
|
||||
{
|
||||
if (collider[i].transform.tag == "WRJ")
|
||||
|
|
Loading…
Reference in New Issue