This commit is contained in:
parent
d9b6539526
commit
a9f9a233b3
|
@ -0,0 +1,72 @@
|
||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!1102 &-1972572098292684555
|
||||||
|
AnimatorState:
|
||||||
|
serializedVersion: 6
|
||||||
|
m_ObjectHideFlags: 1
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_Name: New Animation
|
||||||
|
m_Speed: 1
|
||||||
|
m_CycleOffset: 0
|
||||||
|
m_Transitions: []
|
||||||
|
m_StateMachineBehaviours: []
|
||||||
|
m_Position: {x: 50, y: 50, z: 0}
|
||||||
|
m_IKOnFeet: 0
|
||||||
|
m_WriteDefaultValues: 1
|
||||||
|
m_Mirror: 0
|
||||||
|
m_SpeedParameterActive: 0
|
||||||
|
m_MirrorParameterActive: 0
|
||||||
|
m_CycleOffsetParameterActive: 0
|
||||||
|
m_TimeParameterActive: 0
|
||||||
|
m_Motion: {fileID: 7400000, guid: e855e175987ae8043809aba1fede392b, type: 2}
|
||||||
|
m_Tag:
|
||||||
|
m_SpeedParameter:
|
||||||
|
m_MirrorParameter:
|
||||||
|
m_CycleOffsetParameter:
|
||||||
|
m_TimeParameter:
|
||||||
|
--- !u!91 &9100000
|
||||||
|
AnimatorController:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_Name: 1
|
||||||
|
serializedVersion: 5
|
||||||
|
m_AnimatorParameters: []
|
||||||
|
m_AnimatorLayers:
|
||||||
|
- serializedVersion: 5
|
||||||
|
m_Name: Base Layer
|
||||||
|
m_StateMachine: {fileID: 3081256435139457238}
|
||||||
|
m_Mask: {fileID: 0}
|
||||||
|
m_Motions: []
|
||||||
|
m_Behaviours: []
|
||||||
|
m_BlendingMode: 0
|
||||||
|
m_SyncedLayerIndex: -1
|
||||||
|
m_DefaultWeight: 0
|
||||||
|
m_IKPass: 0
|
||||||
|
m_SyncedLayerAffectsTiming: 0
|
||||||
|
m_Controller: {fileID: 9100000}
|
||||||
|
--- !u!1107 &3081256435139457238
|
||||||
|
AnimatorStateMachine:
|
||||||
|
serializedVersion: 6
|
||||||
|
m_ObjectHideFlags: 1
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_Name: Base Layer
|
||||||
|
m_ChildStates:
|
||||||
|
- serializedVersion: 1
|
||||||
|
m_State: {fileID: -1972572098292684555}
|
||||||
|
m_Position: {x: 200, y: 0, z: 0}
|
||||||
|
m_ChildStateMachines: []
|
||||||
|
m_AnyStateTransitions: []
|
||||||
|
m_EntryTransitions: []
|
||||||
|
m_StateMachineTransitions: {}
|
||||||
|
m_StateMachineBehaviours: []
|
||||||
|
m_AnyStatePosition: {x: 50, y: 20, z: 0}
|
||||||
|
m_EntryPosition: {x: 50, y: 120, z: 0}
|
||||||
|
m_ExitPosition: {x: 800, y: 120, z: 0}
|
||||||
|
m_ParentStateMachinePosition: {x: 800, y: 20, z: 0}
|
||||||
|
m_DefaultState: {fileID: -1972572098292684555}
|
|
@ -0,0 +1,8 @@
|
||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 4cde886752d0aab4c8cf589ed71526ad
|
||||||
|
NativeFormatImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
mainObjectFileID: 9100000
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
|
@ -0,0 +1,8 @@
|
||||||
|
fileFormatVersion: 2
|
||||||
|
guid: da626b080626d97449d594ff2014186f
|
||||||
|
folderAsset: yes
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
|
@ -0,0 +1,81 @@
|
||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!21 &2100000
|
||||||
|
Material:
|
||||||
|
serializedVersion: 8
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_Name: TM
|
||||||
|
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
|
||||||
|
m_ValidKeywords:
|
||||||
|
- _SMOOTHNESS_TEXTURE_ALBEDO_CHANNEL_A
|
||||||
|
m_InvalidKeywords: []
|
||||||
|
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_Ints: []
|
||||||
|
m_Floats:
|
||||||
|
- _BumpScale: 1
|
||||||
|
- _Cutoff: 1
|
||||||
|
- _DetailNormalMapScale: 0
|
||||||
|
- _DstBlend: 0
|
||||||
|
- _GlossMapScale: 0
|
||||||
|
- _Glossiness: 1
|
||||||
|
- _GlossyReflections: 1
|
||||||
|
- _Metallic: 1
|
||||||
|
- _Mode: 0
|
||||||
|
- _OcclusionStrength: 1
|
||||||
|
- _Parallax: 0.02
|
||||||
|
- _SmoothnessTextureChannel: 1
|
||||||
|
- _SpecularHighlights: 1
|
||||||
|
- _SrcBlend: 1
|
||||||
|
- _UVSec: 1
|
||||||
|
- _ZWrite: 1
|
||||||
|
m_Colors:
|
||||||
|
- _Color: {r: 1, g: 1, b: 1, a: 0}
|
||||||
|
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
|
||||||
|
m_BuildTextureStacks: []
|
|
@ -0,0 +1,8 @@
|
||||||
|
fileFormatVersion: 2
|
||||||
|
guid: edf1300cc32303c4db759ec221c81ce5
|
||||||
|
NativeFormatImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
mainObjectFileID: 2100000
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
|
@ -0,0 +1,81 @@
|
||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!21 &2100000
|
||||||
|
Material:
|
||||||
|
serializedVersion: 8
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_Name: black
|
||||||
|
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
|
||||||
|
m_ValidKeywords:
|
||||||
|
- _SMOOTHNESS_TEXTURE_ALBEDO_CHANNEL_A
|
||||||
|
m_InvalidKeywords: []
|
||||||
|
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_Ints: []
|
||||||
|
m_Floats:
|
||||||
|
- _BumpScale: 1
|
||||||
|
- _Cutoff: 1
|
||||||
|
- _DetailNormalMapScale: 0
|
||||||
|
- _DstBlend: 0
|
||||||
|
- _GlossMapScale: 0
|
||||||
|
- _Glossiness: 1
|
||||||
|
- _GlossyReflections: 1
|
||||||
|
- _Metallic: 1
|
||||||
|
- _Mode: 0
|
||||||
|
- _OcclusionStrength: 1
|
||||||
|
- _Parallax: 0.02
|
||||||
|
- _SmoothnessTextureChannel: 1
|
||||||
|
- _SpecularHighlights: 1
|
||||||
|
- _SrcBlend: 1
|
||||||
|
- _UVSec: 1
|
||||||
|
- _ZWrite: 1
|
||||||
|
m_Colors:
|
||||||
|
- _Color: {r: 0, g: 0, b: 0, a: 1}
|
||||||
|
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
|
||||||
|
m_BuildTextureStacks: []
|
|
@ -0,0 +1,8 @@
|
||||||
|
fileFormatVersion: 2
|
||||||
|
guid: d4118dfe9a2724240a796a13b2187374
|
||||||
|
NativeFormatImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
mainObjectFileID: 2100000
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
|
@ -0,0 +1,79 @@
|
||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!21 &2100000
|
||||||
|
Material:
|
||||||
|
serializedVersion: 8
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_Name: "\u7D2B\u5916\u626B\u63CF"
|
||||||
|
m_Shader: {fileID: 4800000, guid: 9351acff99245e0499971745592823ed, type: 3}
|
||||||
|
m_ValidKeywords: []
|
||||||
|
m_InvalidKeywords: []
|
||||||
|
m_LightmapFlags: 5
|
||||||
|
m_EnableInstancingVariants: 0
|
||||||
|
m_DoubleSidedGI: 0
|
||||||
|
m_CustomRenderQueue: 2000
|
||||||
|
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_Ints: []
|
||||||
|
m_Floats:
|
||||||
|
- _BumpScale: 1
|
||||||
|
- _Cutoff: 0.5
|
||||||
|
- _DetailNormalMapScale: 1
|
||||||
|
- _DstBlend: 0
|
||||||
|
- _Glossiness: 0.5
|
||||||
|
- _InvFade: 1
|
||||||
|
- _Metallic: 0
|
||||||
|
- _Mode: 0
|
||||||
|
- _OcclusionStrength: 1
|
||||||
|
- _POW: 1.81
|
||||||
|
- _Parallax: 0.02
|
||||||
|
- _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}
|
||||||
|
- _TintColor: {r: 2.670157, g: 0.0933212, b: 4.759381, a: 1}
|
||||||
|
m_BuildTextureStacks: []
|
|
@ -0,0 +1,8 @@
|
||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 4215f25cc8c424c45b2b7f6d5760f337
|
||||||
|
NativeFormatImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
mainObjectFileID: 2100000
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
|
@ -0,0 +1,79 @@
|
||||||
|
%YAML 1.1
|
||||||
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!21 &2100000
|
||||||
|
Material:
|
||||||
|
serializedVersion: 8
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_Name: "\u7EA2\u5916\u626B\u63CF"
|
||||||
|
m_Shader: {fileID: 4800000, guid: 9351acff99245e0499971745592823ed, type: 3}
|
||||||
|
m_ValidKeywords: []
|
||||||
|
m_InvalidKeywords: []
|
||||||
|
m_LightmapFlags: 5
|
||||||
|
m_EnableInstancingVariants: 0
|
||||||
|
m_DoubleSidedGI: 0
|
||||||
|
m_CustomRenderQueue: 3000
|
||||||
|
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_Ints: []
|
||||||
|
m_Floats:
|
||||||
|
- _BumpScale: 1
|
||||||
|
- _Cutoff: 0.5
|
||||||
|
- _DetailNormalMapScale: 1
|
||||||
|
- _DstBlend: 0
|
||||||
|
- _Glossiness: 0.5
|
||||||
|
- _InvFade: 1
|
||||||
|
- _Metallic: 0
|
||||||
|
- _Mode: 0
|
||||||
|
- _OcclusionStrength: 1
|
||||||
|
- _POW: 1.81
|
||||||
|
- _Parallax: 0.02
|
||||||
|
- _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}
|
||||||
|
- _TintColor: {r: 2.670157, g: 0, b: 0, a: 1}
|
||||||
|
m_BuildTextureStacks: []
|
|
@ -0,0 +1,8 @@
|
||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 1bb0206a763c181489131dbdb7543bc0
|
||||||
|
NativeFormatImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
mainObjectFileID: 2100000
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
|
@ -63,7 +63,7 @@ Material:
|
||||||
- _DetailNormalMapScale: 1
|
- _DetailNormalMapScale: 1
|
||||||
- _DstBlend: 0
|
- _DstBlend: 0
|
||||||
- _Glossiness: 0.5
|
- _Glossiness: 0.5
|
||||||
- _InvFade: 30.04
|
- _InvFade: 7.89
|
||||||
- _Metallic: 0
|
- _Metallic: 0
|
||||||
- _Mode: 0
|
- _Mode: 0
|
||||||
- _OcclusionStrength: 1
|
- _OcclusionStrength: 1
|
||||||
|
@ -75,5 +75,5 @@ Material:
|
||||||
m_Colors:
|
m_Colors:
|
||||||
- _Color: {r: 1, g: 1, b: 1, a: 1}
|
- _Color: {r: 1, g: 1, b: 1, a: 1}
|
||||||
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
|
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
|
||||||
- _TintColor: {r: 0.2901961, g: 0.69803923, b: 2, a: 1}
|
- _TintColor: {r: 1.8912505, g: 2.670157, b: 0, a: 1}
|
||||||
m_BuildTextureStacks: []
|
m_BuildTextureStacks: []
|
||||||
|
|
|
@ -1,5 +1,140 @@
|
||||||
%YAML 1.1
|
%YAML 1.1
|
||||||
%TAG !u! tag:unity3d.com,2011:
|
%TAG !u! tag:unity3d.com,2011:
|
||||||
|
--- !u!1 &5821239636016570255
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 5082974886056684409}
|
||||||
|
- component: {fileID: 8964222352316687832}
|
||||||
|
- component: {fileID: 3582670982235224363}
|
||||||
|
m_Layer: 5
|
||||||
|
m_Name: Text (TMP) (1)
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 0
|
||||||
|
--- !u!224 &5082974886056684409
|
||||||
|
RectTransform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 5821239636016570255}
|
||||||
|
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_ConstrainProportionsScale: 0
|
||||||
|
m_Children: []
|
||||||
|
m_Father: {fileID: 7043585340285074470}
|
||||||
|
m_RootOrder: 1
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
m_AnchorMin: {x: 0, y: 0.5}
|
||||||
|
m_AnchorMax: {x: 1, y: 0.5}
|
||||||
|
m_AnchoredPosition: {x: 10, y: -5}
|
||||||
|
m_SizeDelta: {x: -20, y: 51.3}
|
||||||
|
m_Pivot: {x: 0.5, y: 0.5}
|
||||||
|
--- !u!222 &8964222352316687832
|
||||||
|
CanvasRenderer:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 5821239636016570255}
|
||||||
|
m_CullTransparentMesh: 1
|
||||||
|
--- !u!114 &3582670982235224363
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 5821239636016570255}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: f4688fdb7df04437aeb418b961361dc5, 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:
|
||||||
|
m_isRightToLeft: 0
|
||||||
|
m_fontAsset: {fileID: 11400000, guid: 55cec740f0675824b8f6ef4b21aeea8f, type: 2}
|
||||||
|
m_sharedMaterial: {fileID: -4829118149068189727, guid: 55cec740f0675824b8f6ef4b21aeea8f, 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: 18
|
||||||
|
m_fontSizeBase: 18
|
||||||
|
m_fontWeight: 400
|
||||||
|
m_enableAutoSizing: 0
|
||||||
|
m_fontSizeMin: 18
|
||||||
|
m_fontSizeMax: 72
|
||||||
|
m_fontStyle: 0
|
||||||
|
m_HorizontalAlignment: 1
|
||||||
|
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: 1
|
||||||
|
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: 0, y: 0, z: 0, w: 0}
|
||||||
|
m_isUsingLegacyAnimationComponent: 0
|
||||||
|
m_isVolumetricText: 0
|
||||||
|
m_hasFontAssetChanged: 0
|
||||||
|
m_baseMaterial: {fileID: 0}
|
||||||
|
m_maskOffset: {x: 0, y: 0, z: 0, w: 0}
|
||||||
--- !u!1 &7043585338835493665
|
--- !u!1 &7043585338835493665
|
||||||
GameObject:
|
GameObject:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
|
@ -51,6 +186,7 @@ MonoBehaviour:
|
||||||
m_Name:
|
m_Name:
|
||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
text_Content: {fileID: 7043585338893539756}
|
text_Content: {fileID: 7043585338893539756}
|
||||||
|
text_Title: {fileID: 3582670982235224363}
|
||||||
bg: {fileID: 7043585340285074470}
|
bg: {fileID: 7043585340285074470}
|
||||||
--- !u!1 &7043585338893539754
|
--- !u!1 &7043585338893539754
|
||||||
GameObject:
|
GameObject:
|
||||||
|
@ -218,6 +354,7 @@ RectTransform:
|
||||||
m_ConstrainProportionsScale: 0
|
m_ConstrainProportionsScale: 0
|
||||||
m_Children:
|
m_Children:
|
||||||
- {fileID: 7043585338893539755}
|
- {fileID: 7043585338893539755}
|
||||||
|
- {fileID: 5082974886056684409}
|
||||||
m_Father: {fileID: 7043585338835493666}
|
m_Father: {fileID: 7043585338835493666}
|
||||||
m_RootOrder: 0
|
m_RootOrder: 0
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
|
|
@ -227,6 +227,7 @@ GameObject:
|
||||||
m_Component:
|
m_Component:
|
||||||
- component: {fileID: 960966155}
|
- component: {fileID: 960966155}
|
||||||
- component: {fileID: 960966154}
|
- component: {fileID: 960966154}
|
||||||
|
- component: {fileID: 960966156}
|
||||||
m_Layer: 0
|
m_Layer: 0
|
||||||
m_Name: Bootstrap
|
m_Name: Bootstrap
|
||||||
m_TagString: Untagged
|
m_TagString: Untagged
|
||||||
|
@ -246,7 +247,6 @@ MonoBehaviour:
|
||||||
m_Script: {fileID: 11500000, guid: a55fdffbd83184f458c8f861d4276768, type: 3}
|
m_Script: {fileID: 11500000, guid: a55fdffbd83184f458c8f861d4276768, type: 3}
|
||||||
m_Name:
|
m_Name:
|
||||||
m_EditorClassIdentifier:
|
m_EditorClassIdentifier:
|
||||||
webViewController: {fileID: 0}
|
|
||||||
--- !u!4 &960966155
|
--- !u!4 &960966155
|
||||||
Transform:
|
Transform:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
|
@ -262,6 +262,18 @@ Transform:
|
||||||
m_Father: {fileID: 0}
|
m_Father: {fileID: 0}
|
||||||
m_RootOrder: 2
|
m_RootOrder: 2
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
--- !u!114 &960966156
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 960966153}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 68fb242bbc454f248a151a509fa981be, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier:
|
||||||
--- !u!1 &963194225
|
--- !u!1 &963194225
|
||||||
GameObject:
|
GameObject:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
|
@ -1,6 +1,6 @@
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
|
||||||
public class AudioManager
|
public class AudioManager : MonoBehaviour
|
||||||
{
|
{
|
||||||
public static AudioSource tipsSource;
|
public static AudioSource tipsSource;
|
||||||
public static string clipPath;
|
public static string clipPath;
|
||||||
|
@ -14,7 +14,6 @@ public class AudioManager
|
||||||
/// <param name="clipName"></param>
|
/// <param name="clipName"></param>
|
||||||
public void PlayTipsAudio(string clipName)
|
public void PlayTipsAudio(string clipName)
|
||||||
{
|
{
|
||||||
Debug.Log("PlayTipsAudio");
|
|
||||||
clipPath = "Audios/" + clipName;
|
clipPath = "Audios/" + clipName;
|
||||||
AudioClip clip = Resources.Load<AudioClip>(clipPath);
|
AudioClip clip = Resources.Load<AudioClip>(clipPath);
|
||||||
if (clip != null)
|
if (clip != null)
|
||||||
|
|
|
@ -4,15 +4,12 @@ using UnityEngine;
|
||||||
public class Bootstrap : SingletonMono<Bootstrap>
|
public class Bootstrap : SingletonMono<Bootstrap>
|
||||||
{
|
{
|
||||||
public static UIManager UIMgr { get; private set; }
|
public static UIManager UIMgr { get; private set; }
|
||||||
public static AudioManager AudioMgr { get; private set; }
|
|
||||||
public EventCenter eventCenter;
|
public EventCenter eventCenter;
|
||||||
public ScenesManager scenesManager;
|
public ScenesManager scenesManager;
|
||||||
public WebViewController webViewController;
|
|
||||||
protected override void Awake()
|
protected override void Awake()
|
||||||
{
|
{
|
||||||
base.Awake();
|
base.Awake();
|
||||||
UIMgr = new UIManager();
|
UIMgr = new UIManager();
|
||||||
AudioMgr = new AudioManager();
|
|
||||||
eventCenter = new EventCenter();
|
eventCenter = new EventCenter();
|
||||||
scenesManager = new ScenesManager();
|
scenesManager = new ScenesManager();
|
||||||
DontDestroyOnLoad(gameObject);
|
DontDestroyOnLoad(gameObject);
|
||||||
|
|
|
@ -40,14 +40,20 @@ public class CarControl : MonoBehaviour
|
||||||
}
|
}
|
||||||
if (Bootstrap.UIMgr != null) Bootstrap.UIMgr.ShowPanel<UI_MiddleTipPanel>(this, E_UI_Layer.System, (p) =>
|
if (Bootstrap.UIMgr != null) Bootstrap.UIMgr.ShowPanel<UI_MiddleTipPanel>(this, E_UI_Layer.System, (p) =>
|
||||||
{
|
{
|
||||||
p.Init($"您的爱车已入场!");
|
p.Init($"您的爱车已入场!",3);
|
||||||
testcar.GetComponent<ChangeObjMat>().ChangeChildrenMat(false);
|
Bootstrap.Instance.eventCenter.EventTrigger(Enum_EventType.ChangeChildrenMat,false);
|
||||||
Bootstrap.Instance.eventCenter.EventTrigger(Enum_EventType.AudioPlay, $"³µÁ¾È볡");
|
Bootstrap.Instance.eventCenter.EventTrigger(Enum_EventType.AudioPlay, $"³µÁ¾È볡");
|
||||||
|
Bootstrap.Instance.eventCenter.EventTrigger(Enum_EventType.StepSwitching);
|
||||||
canRotate = !canRotate;
|
canRotate = !canRotate;
|
||||||
});
|
});
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public async void StepSwitching()
|
||||||
|
{
|
||||||
|
await Task.Delay(50);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
private void OnDisable()
|
private void OnDisable()
|
||||||
{
|
{
|
||||||
if (Bootstrap.Instance != null)
|
if (Bootstrap.Instance != null)
|
||||||
|
|
|
@ -1,84 +1,121 @@
|
||||||
using System.Collections;
|
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using System.Linq;
|
using System.Linq;
|
||||||
|
using System.Threading.Tasks;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
|
||||||
public class ChangeObjMat : MonoBehaviour
|
public class ChangeObjMat : MonoBehaviour
|
||||||
{
|
{
|
||||||
//透明材质(想要替换的材质)
|
|
||||||
public Material m_TM;
|
public Material m_TM;
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 保存所有的MeshRenderer
|
|
||||||
/// </summary>
|
|
||||||
public List<MeshRenderer> m_RendererList;
|
public List<MeshRenderer> m_RendererList;
|
||||||
/// <summary>
|
|
||||||
/// 保存子物体下 每个子物体的所有材质(为了还原初始物体上的材质)
|
|
||||||
/// </summary>
|
|
||||||
private List<List<Material>> m_RecordRendererList = new List<List<Material>>();
|
private List<List<Material>> m_RecordRendererList = new List<List<Material>>();
|
||||||
|
/// <summary>
|
||||||
|
/// 车辆物体
|
||||||
|
/// </summary>
|
||||||
|
public GameObject m_Obj;
|
||||||
|
/// <summary>
|
||||||
|
/// 车辆线框
|
||||||
|
/// </summary>
|
||||||
|
public GameObject m_XKObj;
|
||||||
|
/// <summary>
|
||||||
|
/// 车牌扫描
|
||||||
|
/// </summary>
|
||||||
|
public GameObject m_CPObj;
|
||||||
|
/// <summary>
|
||||||
|
/// 车身扫描
|
||||||
|
/// </summary>
|
||||||
|
public GameObject m_CSSMObj;
|
||||||
void Start()
|
void Start()
|
||||||
{
|
{
|
||||||
//所有子物体的MeshRenderer
|
|
||||||
m_RendererList = GetComponentsInChildren<MeshRenderer>().ToList();
|
m_RendererList = GetComponentsInChildren<MeshRenderer>().ToList();
|
||||||
|
|
||||||
//保存所有子物体所有材质
|
|
||||||
m_RecordRendererList.Clear();
|
m_RecordRendererList.Clear();
|
||||||
for (int i = 0; i < m_RendererList.Count; i++)
|
for (int i = 0; i < m_RendererList.Count; i++)
|
||||||
{
|
{
|
||||||
m_RecordRendererList.Add(m_RendererList[i].materials.ToList());
|
m_RecordRendererList.Add(m_RendererList[i].materials.ToList());
|
||||||
}
|
}
|
||||||
|
Bootstrap.Instance.eventCenter.AddEventListener<bool>(Enum_EventType.ChangeChildrenMat, ChangeChildrenMat);
|
||||||
ChangeChildrenMat(isGo);
|
Bootstrap.Instance.eventCenter.AddEventListener(Enum_EventType.StepSwitching, StepSwitching);
|
||||||
|
ChangeChildrenMat(true);
|
||||||
}
|
}
|
||||||
/// <summary>
|
|
||||||
/// 改变子物体材质
|
|
||||||
/// </summary>
|
|
||||||
/// <param name="Change"></param>
|
|
||||||
public void ChangeChildrenMat(bool Change)
|
public void ChangeChildrenMat(bool Change)
|
||||||
{
|
{
|
||||||
if (Change)
|
if (Change)
|
||||||
{//替换所有的子物体材质为 m_TM
|
{
|
||||||
for (int i = 0; i < m_RendererList.Count; i++)
|
for (int i = 0; i < m_RendererList.Count; i++)
|
||||||
{
|
{
|
||||||
int len = m_RendererList[i].materials.Length;
|
int len = m_RendererList[i].materials.Length;
|
||||||
|
|
||||||
//创建相同大小的的数据保存材质m_TM
|
|
||||||
Material[] matArr = new Material[len];
|
Material[] matArr = new Material[len];
|
||||||
for (int j = 0; j < len; j++)
|
for (int j = 0; j < len; j++)
|
||||||
{
|
{
|
||||||
matArr[j] = m_TM;
|
matArr[j] = m_TM;
|
||||||
}
|
}
|
||||||
//赋值
|
|
||||||
for (int j = 0; j < len; j++)
|
for (int j = 0; j < len; j++)
|
||||||
{
|
{
|
||||||
m_RendererList[i].materials = matArr;//整个数组赋值,不能m_RendererList[i].materials[j] = matarr赋值,具体原因不甚了解
|
m_RendererList[i].materials = matArr;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{//还原所有物体材质
|
{
|
||||||
for (int i = 0; i < m_RecordRendererList.Count; i++)
|
for (int i = 0; i < m_RecordRendererList.Count; i++)
|
||||||
{
|
{
|
||||||
List<Material> materialList = m_RecordRendererList[i];
|
List<Material> materialList = m_RecordRendererList[i];
|
||||||
|
|
||||||
m_RendererList[i].materials = materialList.ToArray();
|
m_RendererList[i].materials = materialList.ToArray();
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
public async void StepSwitching()
|
||||||
//测试使用
|
|
||||||
public bool isGo = true;
|
|
||||||
void Update()
|
|
||||||
{
|
{
|
||||||
if (Input.GetKeyDown(KeyCode.A))
|
Debug.Log($"StepSwitching");
|
||||||
|
#region 车牌识别
|
||||||
|
await Task.Delay(3000);
|
||||||
|
Bootstrap.Instance.eventCenter.EventTrigger(Enum_EventType.AudioPlay, $"车牌识别");
|
||||||
|
m_XKObj.SetActive(true);
|
||||||
|
m_CPObj.SetActive(true);
|
||||||
|
m_Obj.SetActive(false);
|
||||||
|
await Task.Delay(5000);
|
||||||
|
m_CPObj.SetActive(false);
|
||||||
|
if (Bootstrap.UIMgr != null) Bootstrap.UIMgr.ShowPanel<UI_MiddleTipPanel>(this, E_UI_Layer.System, (p) =>
|
||||||
{
|
{
|
||||||
ChangeChildrenMat(isGo);
|
p.Init($"检测到车牌号为"+ GetawayMqttClient.licensePlateData.LicensePlateNumber + "!", 5);
|
||||||
isGo = !isGo;
|
});
|
||||||
}
|
await Task.Delay(5000);
|
||||||
|
#endregion
|
||||||
|
#region 车身外观检测
|
||||||
|
if (Bootstrap.UIMgr != null) Bootstrap.UIMgr.ShowPanel<UI_MiddleTipPanel>(this, E_UI_Layer.System, (p) =>
|
||||||
|
{
|
||||||
|
p.Init($"现在进入车身外观检测环节1.深度检测已开始!", 5);
|
||||||
|
});
|
||||||
|
await Task.Delay(5000);
|
||||||
|
Bootstrap.Instance.eventCenter.EventTrigger(Enum_EventType.AudioPlay, $"车身外观检测");
|
||||||
|
if (Bootstrap.UIMgr != null) Bootstrap.UIMgr.ShowPanel<UI_MiddleTipPanel>(this, E_UI_Layer.System, (p) =>
|
||||||
|
{
|
||||||
|
p.Init($"2.车外观检测开始!", 3);
|
||||||
|
});
|
||||||
|
await Task.Delay(3000);
|
||||||
|
if (Bootstrap.UIMgr != null) Bootstrap.UIMgr.ShowPanel<UI_MiddleTipPanel>(this, E_UI_Layer.System, (p) =>
|
||||||
|
{
|
||||||
|
p.Init($"3.您的爱车正进行车外观检测...", 10);
|
||||||
|
});
|
||||||
|
m_CSSMObj.SetActive(true);
|
||||||
|
await Task.Delay(10000);
|
||||||
|
m_CSSMObj.SetActive(false);
|
||||||
|
if (Bootstrap.UIMgr != null) Bootstrap.UIMgr.ShowPanel<UI_MiddleTipPanel>(this, E_UI_Layer.System, (p) =>
|
||||||
|
{
|
||||||
|
p.Init($"3.您的爱车正进行车外观检测...", 5);
|
||||||
|
});
|
||||||
|
await Task.Delay(5000);
|
||||||
|
#endregion
|
||||||
}
|
}
|
||||||
|
|
||||||
|
private void OnDisable()
|
||||||
|
{
|
||||||
|
if (Bootstrap.Instance != null)
|
||||||
|
{
|
||||||
|
Bootstrap.Instance.eventCenter.RemoveEventListener<bool>(Enum_EventType.ChangeChildrenMat, ChangeChildrenMat);
|
||||||
|
Bootstrap.Instance.eventCenter.RemoveEventListener(Enum_EventType.StepSwitching, StepSwitching);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -16,7 +16,7 @@ public class GetawayMqttClient : MonoBehaviour
|
||||||
private IMqttClient mqttClient;
|
private IMqttClient mqttClient;
|
||||||
private MQTTInitData mqttInitData;
|
private MQTTInitData mqttInitData;
|
||||||
private Queue<string> reciveDatas = new Queue<string>();
|
private Queue<string> reciveDatas = new Queue<string>();
|
||||||
private LicensePlateData licensePlateData = new LicensePlateData();
|
public static LicensePlateData licensePlateData = new LicensePlateData();
|
||||||
async void Start()
|
async void Start()
|
||||||
{
|
{
|
||||||
//这里先创建一个客户端对象,但是没进行配置
|
//这里先创建一个客户端对象,但是没进行配置
|
||||||
|
@ -73,8 +73,6 @@ public class GetawayMqttClient : MonoBehaviour
|
||||||
Debug.LogError(e.Message);
|
Debug.LogError(e.Message);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
private void Update()
|
private void Update()
|
||||||
{
|
{
|
||||||
if (reciveDatas.Count > 0)
|
if (reciveDatas.Count > 0)
|
||||||
|
|
|
@ -14,4 +14,6 @@ public enum Enum_EventType
|
||||||
UpdateProgress,
|
UpdateProgress,
|
||||||
AudioPlay,
|
AudioPlay,
|
||||||
ChangeCarSwitch,
|
ChangeCarSwitch,
|
||||||
|
ChangeChildrenMat,
|
||||||
|
StepSwitching
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,9 +1,6 @@
|
||||||
using DG.Tweening.Core.Easing;
|
|
||||||
using System.Collections;
|
using System.Collections;
|
||||||
using System.Collections.Generic;
|
|
||||||
using TMPro;
|
using TMPro;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
using UnityEngine.UI;
|
|
||||||
|
|
||||||
public class UI_MiddleTipPanel : BasePanel
|
public class UI_MiddleTipPanel : BasePanel
|
||||||
{
|
{
|
||||||
|
@ -12,19 +9,18 @@ public class UI_MiddleTipPanel : BasePanel
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private float disappear = 5f;
|
private float disappear = 5f;
|
||||||
public TextMeshProUGUI text_Content;
|
public TextMeshProUGUI text_Content;
|
||||||
|
public TextMeshProUGUI text_Title;
|
||||||
public RectTransform bg;
|
public RectTransform bg;
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 初始化
|
/// 初始化
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public void Init(string content)
|
public void Init(string content,float disappear_ = 5)
|
||||||
{
|
{
|
||||||
|
text_Title.text = content;
|
||||||
text_Content.text = content;
|
text_Content.text = content;
|
||||||
AdjustImageWidth(text_Content, bg, 30, 21);
|
disappear = disappear_;
|
||||||
|
AdjustImageWidth(text_Title, bg, 30, 21);
|
||||||
StartCoroutine(TypeWriterEffect(content));
|
StartCoroutine(TypeWriterEffect(content));
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 打字机效果协程
|
/// 打字机效果协程
|
||||||
|
@ -37,28 +33,26 @@ public class UI_MiddleTipPanel : BasePanel
|
||||||
for (int i = 0; i < textLength; i++)
|
for (int i = 0; i < textLength; i++)
|
||||||
{
|
{
|
||||||
text_Content.text += text[i];
|
text_Content.text += text[i];
|
||||||
yield return new WaitForSeconds(0.1f);
|
yield return new WaitForSeconds(0.05f);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
public override void ShowMe()
|
public override void ShowMe()
|
||||||
{
|
{
|
||||||
base.ShowMe();
|
base.ShowMe();
|
||||||
StopCoroutine(HideAsync());
|
StopCoroutine(HideAsync());
|
||||||
//StartCoroutine(HideAsync());
|
StartCoroutine(HideAsync());
|
||||||
}
|
}
|
||||||
public override void HideMe()
|
public override void HideMe()
|
||||||
{
|
{
|
||||||
base.HideMe();
|
base.HideMe();
|
||||||
StopAllCoroutines();
|
StopAllCoroutines();
|
||||||
}
|
}
|
||||||
|
|
||||||
private IEnumerator HideAsync()
|
private IEnumerator HideAsync()
|
||||||
{
|
{
|
||||||
yield return new WaitForSeconds(disappear);
|
yield return new WaitForSeconds(disappear);
|
||||||
if (Bootstrap.UIMgr.GetPanel<UI_MiddleTipPanel>())
|
if (Bootstrap.UIMgr.GetPanel<UI_MiddleTipPanel>())
|
||||||
Bootstrap.UIMgr.HidePanel<UI_MiddleTipPanel>();
|
Bootstrap.UIMgr.HidePanel<UI_MiddleTipPanel>();
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 根据文字数量改变 背景 大小
|
/// 根据文字数量改变 背景 大小
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
@ -67,8 +61,8 @@ public class UI_MiddleTipPanel : BasePanel
|
||||||
{
|
{
|
||||||
float preferredWidth = contentText.preferredWidth;
|
float preferredWidth = contentText.preferredWidth;
|
||||||
float preferredHeight = contentText.preferredHeight;
|
float preferredHeight = contentText.preferredHeight;
|
||||||
//_bg.sizeDelta = new Vector2(preferredWidth + (contentText.text == "" ? 0 : width), preferredHeight + (contentText.text == "" ? 0 : height)+40);
|
|
||||||
_bg.sizeDelta = new Vector2(preferredWidth + (contentText.text == "" ? 0 : width), _bg.sizeDelta.y);
|
_bg.sizeDelta = new Vector2(preferredWidth + (contentText.text == "" ? 0 : width), _bg.sizeDelta.y);
|
||||||
|
//_bg.sizeDelta = new Vector2(preferredWidth + (contentText.text == "" ? 0 : width), preferredHeight + (contentText.text == "" ? 0 : height)+40);
|
||||||
//contentText.GetComponent<RectTransform>().sizeDelta = new Vector2(preferredWidth + (contentText.text == "" ? 0 : width), height);
|
//contentText.GetComponent<RectTransform>().sizeDelta = new Vector2(preferredWidth + (contentText.text == "" ? 0 : width), height);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -35,7 +35,7 @@ public class WebViewController : MonoBehaviour
|
||||||
{
|
{
|
||||||
Debug.Log("网页加载完成.");
|
Debug.Log("网页加载完成.");
|
||||||
canvasWebViewPrefab.WebView.ConsoleMessageLogged += HandleConsoleMessage;
|
canvasWebViewPrefab.WebView.ConsoleMessageLogged += HandleConsoleMessage;
|
||||||
Bootstrap.Instance.eventCenter.EventTrigger(Enum_EventType.ChangeCarSwitch);
|
//Bootstrap.Instance.eventCenter.EventTrigger(Enum_EventType.ChangeCarSwitch);
|
||||||
await Task.Delay(2000);
|
await Task.Delay(2000);
|
||||||
WGDetection.SetActive(true);
|
WGDetection.SetActive(true);
|
||||||
HWDetection.SetActive(true);
|
HWDetection.SetActive(true);
|
||||||
|
|
Loading…
Reference in New Issue