修改提示和数据结构

This commit is contained in:
YangHua 2024-07-01 17:33:51 +08:00
parent 6fb4e3e2b7
commit 47a5d28d2f
17 changed files with 37939 additions and 694110 deletions

View File

@ -166477,7 +166477,8 @@ Material:
m_Shader: {fileID: 4800000, guid: 68e6db2ebdc24f95958faec2be5558d6, type: 3}
m_Parent: {fileID: 0}
m_ModifiedSerializedProperties: 0
m_ValidKeywords: []
m_ValidKeywords:
- GLOW_ON
m_InvalidKeywords: []
m_LightmapFlags: 4
m_EnableInstancingVariants: 0
@ -166525,10 +166526,10 @@ Material:
- _FaceDilate: 0
- _FaceUVSpeedX: 0
- _FaceUVSpeedY: 0
- _GlowInner: 0.05
- _GlowOffset: 0
- _GlowOuter: 0.05
- _GlowPower: 0.75
- _GlowInner: 0
- _GlowOffset: -0.43
- _GlowOuter: 0.8
- _GlowPower: 0.7
- _GradientScale: 6
- _LightAngle: 3.1416
- _MaskSoftnessX: 0
@ -166566,9 +166567,9 @@ Material:
- _ClipRect: {r: -32767, g: -32767, b: 32767, a: 32767}
- _EnvMatrixRotation: {r: 0, g: 0, b: 0, a: 0}
- _FaceColor: {r: 1, g: 1, b: 1, a: 1}
- _GlowColor: {r: 0, g: 1, b: 0, a: 0.5}
- _GlowColor: {r: 1, g: 0.9251674, b: 0, a: 0.77254903}
- _MaskCoord: {r: 0, g: 0, b: 32767, a: 32767}
- _OutlineColor: {r: 0, g: 0, b: 0, a: 1}
- _OutlineColor: {r: 1, g: 1, b: 1, a: 1}
- _ReflectFaceColor: {r: 0, g: 0, b: 0, a: 1}
- _ReflectOutlineColor: {r: 0, g: 0, b: 0, a: 1}
- _SpecularColor: {r: 1, g: 1, b: 1, a: 1}

View File

@ -18,7 +18,7 @@ Material:
m_LightmapFlags: 4
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
m_CustomRenderQueue: 2000
m_CustomRenderQueue: 2450
stringTagMap: {}
disabledShaderPasses: []
m_LockedProperties:

View File

@ -0,0 +1,564 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1 &2903201443363598303
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 6037173998447792942}
- component: {fileID: 1258097430723790164}
- component: {fileID: 182625262040063529}
m_Layer: 0
m_Name: Count
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &6037173998447792942
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2903201443363598303}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: -0.028}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 6829193728477757397}
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: 20, y: 5}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!23 &1258097430723790164
MeshRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2903201443363598303}
m_Enabled: 1
m_CastShadows: 0
m_ReceiveShadows: 0
m_DynamicOccludee: 1
m_StaticShadowCaster: 0
m_MotionVectors: 1
m_LightProbeUsage: 1
m_ReflectionProbeUsage: 1
m_RayTracingMode: 2
m_RayTraceProcedural: 0
m_RenderingLayerMask: 1
m_RendererPriority: 0
m_Materials:
- {fileID: 5181339696652704507, guid: b8d4664f5fbc53a42894922de3bc7f8c, type: 2}
m_StaticBatchInfo:
firstSubMesh: 0
subMeshCount: 0
m_StaticBatchRoot: {fileID: 0}
m_ProbeAnchor: {fileID: 0}
m_LightProbeVolumeOverride: {fileID: 0}
m_ScaleInLightmap: 1
m_ReceiveGI: 1
m_PreserveUVs: 0
m_IgnoreNormalsForChartDetection: 0
m_ImportantGI: 0
m_StitchLightmapSeams: 1
m_SelectedEditorRenderState: 3
m_MinimumChartSize: 4
m_AutoUVMaxDistance: 0.5
m_AutoUVMaxAngle: 89
m_LightmapParameters: {fileID: 0}
m_SortingLayerID: 0
m_SortingLayer: 0
m_SortingOrder: 0
m_AdditionalVertexStreams: {fileID: 0}
--- !u!114 &182625262040063529
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2903201443363598303}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 9541d86e2fd84c1d9990edf0852d74ab, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_RaycastTarget: 1
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_text: "\u4E1C\u8425\u6492(29)"
m_isRightToLeft: 0
m_fontAsset: {fileID: 11400000, guid: b8d4664f5fbc53a42894922de3bc7f8c, type: 2}
m_sharedMaterial: {fileID: 5181339696652704507, guid: b8d4664f5fbc53a42894922de3bc7f8c,
type: 2}
m_fontSharedMaterials: []
m_fontMaterial: {fileID: 0}
m_fontMaterials: []
m_fontColor32:
serializedVersion: 2
rgba: 4294967295
m_fontColor: {r: 1, g: 1, b: 1, a: 1}
m_enableVertexGradient: 0
m_colorMode: 3
m_fontColorGradient:
topLeft: {r: 1, g: 1, b: 1, a: 1}
topRight: {r: 1, g: 1, b: 1, a: 1}
bottomLeft: {r: 1, g: 1, b: 1, a: 1}
bottomRight: {r: 1, g: 1, b: 1, a: 1}
m_fontColorGradientPreset: {fileID: 0}
m_spriteAsset: {fileID: 0}
m_tintAllSprites: 0
m_StyleSheet: {fileID: 0}
m_TextStyleHashCode: -1183493901
m_overrideHtmlColors: 0
m_faceColor:
serializedVersion: 2
rgba: 4294967295
m_fontSize: 15
m_fontSizeBase: 15
m_fontWeight: 400
m_enableAutoSizing: 0
m_fontSizeMin: 18
m_fontSizeMax: 72
m_fontStyle: 0
m_HorizontalAlignment: 2
m_VerticalAlignment: 512
m_textAlignment: 65535
m_characterSpacing: 0
m_wordSpacing: 0
m_lineSpacing: 0
m_lineSpacingMax: 0
m_paragraphSpacing: 0
m_charWidthMaxAdj: 0
m_enableWordWrapping: 1
m_wordWrappingRatios: 0.4
m_overflowMode: 0
m_linkedTextComponent: {fileID: 0}
parentLinkedComponent: {fileID: 0}
m_enableKerning: 1
m_enableExtraPadding: 0
checkPaddingRequired: 0
m_isRichText: 1
m_parseCtrlCharacters: 1
m_isOrthographic: 0
m_isCullingEnabled: 0
m_horizontalMapping: 0
m_verticalMapping: 0
m_uvLineOffset: 0
m_geometrySortingOrder: 0
m_IsTextObjectScaleStatic: 0
m_VertexBufferAutoSizeReduction: 0
m_useMaxVisibleDescender: 1
m_pageToDisplay: 1
m_margin: {x: 1.1199245, y: 0.7132971, z: 9.997579, w: 0.6904204}
m_isUsingLegacyAnimationComponent: 0
m_isVolumetricText: 0
_SortingLayer: 0
_SortingLayerID: 0
_SortingOrder: 0
m_hasFontAssetChanged: 0
m_renderer: {fileID: 1258097430723790164}
m_maskType: 0
--- !u!1 &3642205659786239540
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 6829193728477757397}
- component: {fileID: 2265163985726705411}
m_Layer: 0
m_Name: DataDisplay
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &6829193728477757397
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 3642205659786239540}
serializedVersion: 2
m_LocalRotation: {x: -0, y: 1, z: -0, w: 0}
m_LocalPosition: {x: 0, y: 5, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children:
- {fileID: 6037173998447792942}
- {fileID: 6481934859134185512}
m_Father: {fileID: 3189462245748133917}
m_LocalEulerAnglesHint: {x: 0, y: 180, z: 0}
--- !u!212 &2265163985726705411
SpriteRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 3642205659786239540}
m_Enabled: 1
m_CastShadows: 0
m_ReceiveShadows: 0
m_DynamicOccludee: 1
m_StaticShadowCaster: 0
m_MotionVectors: 1
m_LightProbeUsage: 1
m_ReflectionProbeUsage: 1
m_RayTracingMode: 0
m_RayTraceProcedural: 0
m_RenderingLayerMask: 1
m_RendererPriority: 0
m_Materials:
- {fileID: 2100000, guid: c6c9c9ced31ab0a44a156efc52c31cb1, type: 2}
m_StaticBatchInfo:
firstSubMesh: 0
subMeshCount: 0
m_StaticBatchRoot: {fileID: 0}
m_ProbeAnchor: {fileID: 0}
m_LightProbeVolumeOverride: {fileID: 0}
m_ScaleInLightmap: 1
m_ReceiveGI: 1
m_PreserveUVs: 0
m_IgnoreNormalsForChartDetection: 0
m_ImportantGI: 0
m_StitchLightmapSeams: 1
m_SelectedEditorRenderState: 0
m_MinimumChartSize: 4
m_AutoUVMaxDistance: 0.5
m_AutoUVMaxAngle: 89
m_LightmapParameters: {fileID: 0}
m_SortingLayerID: 0
m_SortingLayer: 0
m_SortingOrder: 0
m_Sprite: {fileID: 21300000, guid: e31fb98fe5eda8b468b0c03fb210c986, type: 3}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_FlipX: 0
m_FlipY: 0
m_DrawMode: 1
m_Size: {x: 18, y: 3}
m_AdaptiveModeThreshold: 0.5
m_SpriteTileMode: 0
m_WasSpriteAssigned: 1
m_MaskInteraction: 0
m_SpriteSortPoint: 0
--- !u!1 &4538573820757738473
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 3189462245748133917}
- component: {fileID: 5363858592367983124}
m_Layer: 0
m_Name: DataDisplay
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &3189462245748133917
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4538573820757738473}
serializedVersion: 2
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 3.4017296, y: 4.11, z: -26.184784}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children:
- {fileID: 6829193728477757397}
- {fileID: 2789264866873497265}
m_Father: {fileID: 0}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &5363858592367983124
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 4538573820757738473}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: deac56328b1a8f14783a00a90bac4bf3, type: 3}
m_Name:
m_EditorClassIdentifier:
countInfo: {fileID: 182625262040063529}
dataInfo: {fileID: 1899281474033451619}
isHaveValue: 0
--- !u!1 &8279618592568050451
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 6481934859134185512}
- component: {fileID: 1562423644800345147}
- component: {fileID: 1899281474033451619}
m_Layer: 0
m_Name: Data
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &6481934859134185512
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8279618592568050451}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: -0.028}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 6829193728477757397}
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: 1.469, y: 0}
m_SizeDelta: {x: 20, y: 5}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!23 &1562423644800345147
MeshRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8279618592568050451}
m_Enabled: 1
m_CastShadows: 0
m_ReceiveShadows: 0
m_DynamicOccludee: 1
m_StaticShadowCaster: 0
m_MotionVectors: 1
m_LightProbeUsage: 1
m_ReflectionProbeUsage: 1
m_RayTracingMode: 2
m_RayTraceProcedural: 0
m_RenderingLayerMask: 1
m_RendererPriority: 0
m_Materials:
- {fileID: 5181339696652704507, guid: b8d4664f5fbc53a42894922de3bc7f8c, type: 2}
m_StaticBatchInfo:
firstSubMesh: 0
subMeshCount: 0
m_StaticBatchRoot: {fileID: 0}
m_ProbeAnchor: {fileID: 0}
m_LightProbeVolumeOverride: {fileID: 0}
m_ScaleInLightmap: 1
m_ReceiveGI: 1
m_PreserveUVs: 0
m_IgnoreNormalsForChartDetection: 0
m_ImportantGI: 0
m_StitchLightmapSeams: 1
m_SelectedEditorRenderState: 3
m_MinimumChartSize: 4
m_AutoUVMaxDistance: 0.5
m_AutoUVMaxAngle: 89
m_LightmapParameters: {fileID: 0}
m_SortingLayerID: 0
m_SortingLayer: 0
m_SortingOrder: 0
m_AdditionalVertexStreams: {fileID: 0}
--- !u!114 &1899281474033451619
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8279618592568050451}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 9541d86e2fd84c1d9990edf0852d74ab, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 1}
m_RaycastTarget: 1
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
m_Maskable: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_text: 4.789MW
m_isRightToLeft: 0
m_fontAsset: {fileID: 11400000, guid: b8d4664f5fbc53a42894922de3bc7f8c, type: 2}
m_sharedMaterial: {fileID: 5181339696652704507, guid: b8d4664f5fbc53a42894922de3bc7f8c,
type: 2}
m_fontSharedMaterials: []
m_fontMaterial: {fileID: 0}
m_fontMaterials: []
m_fontColor32:
serializedVersion: 2
rgba: 4294967295
m_fontColor: {r: 1, g: 1, b: 1, a: 1}
m_enableVertexGradient: 0
m_colorMode: 3
m_fontColorGradient:
topLeft: {r: 1, g: 1, b: 1, a: 1}
topRight: {r: 1, g: 1, b: 1, a: 1}
bottomLeft: {r: 1, g: 1, b: 1, a: 1}
bottomRight: {r: 1, g: 1, b: 1, a: 1}
m_fontColorGradientPreset: {fileID: 0}
m_spriteAsset: {fileID: 0}
m_tintAllSprites: 0
m_StyleSheet: {fileID: 0}
m_TextStyleHashCode: -1183493901
m_overrideHtmlColors: 0
m_faceColor:
serializedVersion: 2
rgba: 4294967295
m_fontSize: 20
m_fontSizeBase: 20
m_fontWeight: 400
m_enableAutoSizing: 0
m_fontSizeMin: 18
m_fontSizeMax: 72
m_fontStyle: 0
m_HorizontalAlignment: 2
m_VerticalAlignment: 512
m_textAlignment: 65535
m_characterSpacing: 0
m_wordSpacing: 0
m_lineSpacing: 0
m_lineSpacingMax: 0
m_paragraphSpacing: 0
m_charWidthMaxAdj: 0
m_enableWordWrapping: 1
m_wordWrappingRatios: 0.4
m_overflowMode: 0
m_linkedTextComponent: {fileID: 0}
parentLinkedComponent: {fileID: 0}
m_enableKerning: 1
m_enableExtraPadding: 0
checkPaddingRequired: 0
m_isRichText: 1
m_parseCtrlCharacters: 1
m_isOrthographic: 0
m_isCullingEnabled: 0
m_horizontalMapping: 0
m_verticalMapping: 0
m_uvLineOffset: 0
m_geometrySortingOrder: 0
m_IsTextObjectScaleStatic: 0
m_VertexBufferAutoSizeReduction: 0
m_useMaxVisibleDescender: 1
m_pageToDisplay: 1
m_margin: {x: 8.530459, y: 0.55673194, z: 2.5545158, w: 0.5447171}
m_isUsingLegacyAnimationComponent: 0
m_isVolumetricText: 0
_SortingLayer: 0
_SortingLayerID: 0
_SortingOrder: 0
m_hasFontAssetChanged: 0
m_renderer: {fileID: 1562423644800345147}
m_maskType: 0
--- !u!1 &8589215555972230123
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 2789264866873497265}
- component: {fileID: 2996172630631876936}
- component: {fileID: 1989209510141921054}
m_Layer: 0
m_Name: "\u4E1C\u8425\u5E02\u5149\u5708"
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &2789264866873497265
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8589215555972230123}
serializedVersion: 2
m_LocalRotation: {x: 0.86602545, y: 0, z: 0, w: 0.49999994}
m_LocalPosition: {x: 0, y: 0.19000053, z: 0}
m_LocalScale: {x: 5, y: 5, z: 5}
m_ConstrainProportionsScale: 1
m_Children: []
m_Father: {fileID: 3189462245748133917}
m_LocalEulerAnglesHint: {x: 120, y: 0, z: 0}
--- !u!33 &2996172630631876936
MeshFilter:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8589215555972230123}
m_Mesh: {fileID: 10210, guid: 0000000000000000e000000000000000, type: 0}
--- !u!23 &1989209510141921054
MeshRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 8589215555972230123}
m_Enabled: 1
m_CastShadows: 1
m_ReceiveShadows: 1
m_DynamicOccludee: 1
m_StaticShadowCaster: 0
m_MotionVectors: 1
m_LightProbeUsage: 1
m_ReflectionProbeUsage: 1
m_RayTracingMode: 2
m_RayTraceProcedural: 0
m_RenderingLayerMask: 1
m_RendererPriority: 0
m_Materials:
- {fileID: 2100000, guid: cb92ed188883b4f48bcba8445f5a9b6c, type: 2}
m_StaticBatchInfo:
firstSubMesh: 0
subMeshCount: 0
m_StaticBatchRoot: {fileID: 0}
m_ProbeAnchor: {fileID: 0}
m_LightProbeVolumeOverride: {fileID: 0}
m_ScaleInLightmap: 1
m_ReceiveGI: 1
m_PreserveUVs: 0
m_IgnoreNormalsForChartDetection: 0
m_ImportantGI: 0
m_StitchLightmapSeams: 1
m_SelectedEditorRenderState: 3
m_MinimumChartSize: 4
m_AutoUVMaxDistance: 0.5
m_AutoUVMaxAngle: 89
m_LightmapParameters: {fileID: 0}
m_SortingLayerID: 0
m_SortingLayer: 0
m_SortingOrder: 0
m_AdditionalVertexStreams: {fileID: 0}

View File

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

File diff suppressed because it is too large Load Diff

View File

@ -6,17 +6,20 @@ using TMPro;
public class AggregateStation : MonoBehaviour
{
public SpriteRenderer instruct;
public TMP_Text instructInfo;
//public SpriteRenderer instruct;
public TMP_Text countInfo;
public TMP_Text dataInfo;
public bool isHaveValue;
public void SetInfo(Sprite stationIcon, string num)
//public void SetInfo(Sprite stationIcon, string num)
//{
// //instruct.sprite = stationIcon;
// //instructInfo.text = num;
//}
public void SetInfo(string num, string data)
{
instruct.sprite = stationIcon;
instructInfo.text = num;
}
public void SetInfo(string num)
{
instructInfo.text = num;
string cityName = transform.parent.name.Substring(0, 2);
countInfo.text = $"{cityName}({num})";
dataInfo.text = $"{data}<size=15>MW</size>";
gameObject.SetActive(num != "0");
isHaveValue = num != "0" ? true : false;
}

View File

@ -13,28 +13,28 @@ public class CityInfo : MonoBehaviour
{
if (!GetComponent<Collider>())
gameObject.AddComponent<MeshCollider>();
}
public void Init()
{
OnSetStationInfo();
GetAreaData();
}
public async void OnSetStationInfo()
{
if (!string.IsNullOrEmpty(distCode) && distCode.Length == 6 && Level != 3)
if (!string.IsNullOrEmpty(distCode) && distCode.Length == 6 && Level != 3)//获取市级市级下得区县
{
DataController.Instance.loadingScreenTopStatisticsTasks.Add(DataController.Instance.GetProvincialLevelStationInfo(distCode, cityName));
sts = await DataController.Instance.GetProvincialLevelStationInfo(distCode, cityName);
}
else if (!string.IsNullOrEmpty(distCode) && distCode.Length == 4 && Level != 3)
else if (!string.IsNullOrEmpty(distCode) && distCode.Length == 4 && Level != 3)///获取省级视角下得市级
sts = DataController.Instance.GetProvincialLevelStationDataByDistCode(distCode);
else
{
}
SetScreenTopStatistices(sts);
SetScreenTopStatistices(0);
if (!string.IsNullOrEmpty(distCode) && distCode.Length == 6 && transform.parent.gameObject.activeSelf && Level != 3)
transform.parent.gameObject.SetActive(false);
if (Level == 3)
@ -53,23 +53,16 @@ public class CityInfo : MonoBehaviour
}
}
public void SetScreenTopStatistices(ScreenTopStatistics sts)
public void SetScreenTopStatistices(int stationIndex)
{
if (sts != null)
if (transform.childCount == 0) return;
if (sts != null && !string.IsNullOrEmpty(sts.distCode))
{
transform.GetChild(0).GetComponent<AggregateStation>().SetInfo(sts.agentCons);
transform.GetChild(1).GetComponent<AggregateStation>().SetInfo(sts.energyStation);
transform.GetChild(2).GetComponent<AggregateStation>().SetInfo(sts.phoStation);
transform.GetChild(3).GetComponent<AggregateStation>().SetInfo(sts.microGrid);
transform.GetChild(4).GetComponent<AggregateStation>().SetInfo(sts.airCondition);
transform.GetChild(5).GetComponent<AggregateStation>().SetInfo(sts.windStation);
transform.GetChild(0).GetComponent<AggregateStation>().SetInfo(CheckCurrentStation(stationIndex)[0], CheckCurrentStation(stationIndex)[1]);
}
else
{
for (int i = 0; i < transform.childCount; i++)
{
transform.GetChild(i).gameObject.SetActive(false);
}
transform.GetChild(0).gameObject.SetActive(false);
}
}
@ -87,9 +80,52 @@ public class CityInfo : MonoBehaviour
if (Level == 3)
{
sts = s;
SetScreenTopStatistices(s);
SetScreenTopStatistices(0);
}
}
/// <summary>
/// 0-代理用户1-微电网2-储能电站3-光伏电站4-风电站5-充电站6-楼宇空调
/// </summary>
/// <param name="stationIndex"></param>
/// <returns></returns>
public List<string> CheckCurrentStation(int stationIndex)
{
List<string> temp = new List<string>();
switch (stationIndex)
{
case 0:
temp.Add(sts.agentCons);
temp.Add(sts.agentConsRegulateCap);
break;
case 1:
temp.Add(sts.microGrid);
temp.Add(sts.microGridRegulateCap);
break;
case 2:
temp.Add(sts.energyStation);
temp.Add(sts.energyStationRegulateCap);
break;
case 3:
temp.Add(sts.phoStation);
temp.Add(sts.phoStationRegulateCap);
break;
case 4:
temp.Add(sts.windStation);
temp.Add(sts.windStationRegulateCap);
break;
case 5:
temp.Add(sts.chargeStation);
temp.Add(sts.chargeStationRegulateCap);
break;
case 6:
temp.Add(sts.airCondition);
temp.Add(sts.airConditionRegulateCap);
break;
default:
break;
}
return temp;
}
}

View File

@ -6,24 +6,25 @@ using UnityEngine;
/// 区域资源站点信息
/// </summary>
[Serializable]
public class AreaStationData
public class AreaStationData
{
/// <summary>
///
/// </summary>
public int code ;
public int code;
/// <summary>
///
/// </summary>
public string success ;
public string success;
/// <summary>
///
/// </summary>
public List<DataItem> data ;
public List<DataItem> data;
/// <summary>
/// 操作成功
/// </summary>
public string msg ;
public string msg;
}
[Serializable]
public class DataItem
@ -45,32 +46,66 @@ public class DataItem
public class ScreenTopStatistics
{
/// <summary>
///行政区域编码
///
/// </summary>
public string distCode ;
public string distCode;
/// <summary>
/// 代理用户
///
/// </summary>
public string agentCons ;
public string agentCons;
/// <summary>
/// 微电网
///
/// </summary>
public string microGrid ;
public string microGrid;
/// <summary>
/// 储能电站
///
/// </summary>
public string energyStation ;
public string energyStation;
/// <summary>
/// 光伏电站
///
/// </summary>
public string phoStation ;
public string phoStation;
/// <summary>
/// 风电站
///
/// </summary>
public string windStation ;
public string windStation;
/// <summary>
/// 楼宇空调
///
/// </summary>
public string airCondition ;
public string chargeStation;
/// <summary>
///
/// </summary>
public string airCondition;
/// <summary>
///
/// </summary>
public string agentConsRegulateCap;
/// <summary>
///
/// </summary>
public string microGridRegulateCap;
/// <summary>
///
/// </summary>
public string energyStationRegulateCap;
/// <summary>
///
/// </summary>
public string phoStationRegulateCap;
/// <summary>
///
/// </summary>
public string windStationRegulateCap;
/// <summary>
///
/// </summary>
public string chargeStationRegulateCap;
/// <summary>
///
/// </summary>
public string airConditionRegulateCap;
}

View File

@ -20,6 +20,7 @@ public class DataController : MonoSingleton<DataController>
private async void Start()
{
Bootstrap.Instance.webAdapter.onStation.AddListener(SwitchStation);
await UniTask.Delay(1);
areaStationData = await GetProvincialLevelStationData("37");
cityInfos = transform.GetComponentsInChildren<CityInfo>();
@ -39,7 +40,20 @@ public class DataController : MonoSingleton<DataController>
string distCodeTemp = cityInfos[i].distCode;
cityInfos[i].SetStationData(GetAreLevelStationDataByDistCode(distCodeTemp));
}
}
public void TEstStation(int index)
{
SwitchStation(index);
}
public void SwitchStation(int stationIndex)
{
for (int i = 0; i < cityInfos.Length; i++)
{
cityInfos[i].SetScreenTopStatistices(stationIndex);
}
}
/// <summary>
@ -104,7 +118,7 @@ public class DataController : MonoSingleton<DataController>
await UniTask.Delay(2);
string url = Bootstrap.Instance.urlDic["µØÍ¼µ¯³ö¿ò"];
AreaData areaData = await AsyncWebReq.Get<AreaData>($"{url}{_distCode}", Bootstrap.Instance.webAdapter.head, Bootstrap.Instance.webAdapter.token);
if ( !bool.Parse(areaData.success)) return null;
if (!bool.Parse(areaData.success)) return null;
return areaData;
}

View File

@ -8,11 +8,10 @@ public class TEst : MonoBehaviour
public CityExcelData manager = new CityExcelData();
public AggregateStation aggregateStation;
public List<Sprite> sprites = new List<Sprite>();
public List<GameObject> gameObjects = new List<GameObject>();
public Transform p;
public bool isDeleteStationInstructs;
public float h = 2;
public int level = 0;
[ContextMenu("GetInfo")]
public void CreateItemAsset()
{
@ -52,41 +51,41 @@ public class TEst : MonoBehaviour
[ContextMenu("CreateStation")]
public void CreateStation()
{
for (int i = 0; i < gameObjects.Count; i++)
{
DestroyImmediate(gameObjects[i]);
}
gameObjects.Clear();
if (isDeleteStationInstructs) return;
for (int i = 0; i < p.childCount; i++)
{
Transform t = p.GetChild(i);
if (t.childCount > 0)
if (level == 1)
{
for (int g = 0; g < t.childCount; g++)
if (t.childCount > 0)
{
Transform tt = t.GetChild(g);
for (int j = 0; j < sprites.Count; j++)
for (int g = 0; g < t.childCount; g++)
{
Transform tt = t.GetChild(g);
if (tt.childCount > 0)
{
DestroyImmediate(tt.GetChild(0).gameObject);
}
AggregateStation _aggregateStation = Instantiate(aggregateStation, tt);
_aggregateStation.transform.localPosition = new Vector3(Random.Range(-0.5f, 0.5f), Random.Range(-0.5f, 0.5f), h);
_aggregateStation.transform.localEulerAngles = new Vector3(90, 0, 0);
_aggregateStation.SetInfo(sprites[j], "0");
gameObjects.Add(_aggregateStation.gameObject);
_aggregateStation.transform.localEulerAngles = new Vector3(60, 0, 0);
}
}
}
else
if (level == 0)
{
for (int j = 0; j < sprites.Count; j++)
if (t.childCount > 0)
{
AggregateStation _aggregateStation = Instantiate(aggregateStation, t);
_aggregateStation.transform.localPosition = new Vector3(Random.Range(-0.5f, 0.5f), Random.Range(-0.5f, 0.5f), h);
_aggregateStation.transform.localEulerAngles = new Vector3(90, 0, 0);
_aggregateStation.SetInfo(sprites[j], "0");
gameObjects.Add(_aggregateStation.gameObject);
for (int y = 0; y < p.childCount; y++)
{
DestroyImmediate(p.GetChild(y).GetChild(0).gameObject);
}
}
AggregateStation _aggregateStation = Instantiate(aggregateStation, t);
_aggregateStation.transform.localPosition = new Vector3(Random.Range(-0.5f, 0.5f), Random.Range(-0.5f, 0.5f), h);
_aggregateStation.transform.localEulerAngles = new Vector3(60, 0, 0);
//_aggregateStation.SetInfo(sprites[j], "0");
}
}
}

View File

@ -19,14 +19,14 @@ public class WebAdapter : MonoBehaviour
//Debug.Log(level);
}
#endif
public UnityEvent<string> onStation;
public UnityEvent<int> onStation;
public void OnLevelChange(int _level)
{
LevelChange(_level);
//Debug.Log("UnityLog==level==" + _level);
}
public void OnStation(string station)
public void OnStation(int station)
{
onStation?.Invoke(station);
Debug.Log("UnityLog==station==" + station);

View File

@ -0,0 +1,17 @@
Shader "Custom/3DTextShader1" {
Properties {
_MainTex ("Font Texture", 2D) = "white" {}
_Color ("Text Color", Color) = (1,1,1,1)
}
SubShader {
Tags{ "Queue"="Transparent" "IgnoreProjector"="True" "RenderType"="Transparent" }
Lighting Off Cull Off ZWrite On Fog { Mode Off }
Blend SrcAlpha OneMinusSrcAlpha
Pass {
Color [_Color]
SetTexture [_MainTex] {
combine primary, texture * primary
}
}
}
}

View File

@ -0,0 +1,9 @@
fileFormatVersion: 2
guid: 4b1c7af79b22a924a9f70b28c62eb26f
ShaderImporter:
externalObjects: {}
defaultTextures: []
nonModifiableTextures: []
userData:
assetBundleName:
assetBundleVariant:

Binary file not shown.

After

Width:  |  Height:  |  Size: 826 B

View File

@ -0,0 +1,127 @@
fileFormatVersion: 2
guid: e31fb98fe5eda8b468b0c03fb210c986
TextureImporter:
internalIDToNameTable: []
externalObjects: {}
serializedVersion: 12
mipmaps:
mipMapMode: 0
enableMipMap: 0
sRGBTexture: 1
linearTexture: 0
fadeOut: 0
borderMipMap: 0
mipMapsPreserveCoverage: 0
alphaTestReferenceValue: 0.5
mipMapFadeDistanceStart: 1
mipMapFadeDistanceEnd: 3
bumpmap:
convertToNormalMap: 0
externalNormalMap: 0
heightScale: 0.25
normalMapFilter: 0
flipGreenChannel: 0
isReadable: 0
streamingMipmaps: 0
streamingMipmapsPriority: 0
vTOnly: 0
ignoreMipmapLimit: 0
grayScaleToAlpha: 0
generateCubemap: 6
cubemapConvolution: 0
seamlessCubemap: 0
textureFormat: 1
maxTextureSize: 2048
textureSettings:
serializedVersion: 2
filterMode: 1
aniso: 1
mipBias: 0
wrapU: 1
wrapV: 1
wrapW: 0
nPOTScale: 0
lightmap: 0
compressionQuality: 50
spriteMode: 1
spriteExtrude: 1
spriteMeshType: 1
alignment: 0
spritePivot: {x: 0.5, y: 0.5}
spritePixelsToUnits: 100
spriteBorder: {x: 0, y: 0, z: 0, w: 0}
spriteGenerateFallbackPhysicsShape: 1
alphaUsage: 1
alphaIsTransparency: 1
spriteTessellationDetail: -1
textureType: 8
textureShape: 1
singleChannelComponent: 0
flipbookRows: 1
flipbookColumns: 1
maxTextureSizeSet: 0
compressionQualitySet: 0
textureFormatSet: 0
ignorePngGamma: 0
applyGammaDecoding: 0
swizzle: 50462976
cookieLightType: 0
platformSettings:
- serializedVersion: 3
buildTarget: DefaultTexturePlatform
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: Standalone
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
- serializedVersion: 3
buildTarget: WebGL
maxTextureSize: 2048
resizeAlgorithm: 0
textureFormat: -1
textureCompression: 1
compressionQuality: 50
crunchedCompression: 0
allowsAlphaSplitting: 0
overridden: 0
ignorePlatformSupport: 0
androidETC2FallbackOverride: 0
forceMaximumCompressionQuality_BC6H_BC7: 0
spriteSheet:
serializedVersion: 2
sprites: []
outline: []
physicsShape: []
bones: []
spriteID: 5e97eb03825dee720800000000000000
internalID: 0
vertices: []
indices:
edges: []
weights: []
secondaryTextures: []
nameFileIdTable: {}
mipmapLimitGroupName:
pSDRemoveMatte: 0
userData:
assetBundleName:
assetBundleVariant: