1
This commit is contained in:
parent
e6414350dd
commit
875ca1d5b6
BIN
Assets/Art/Sounds/奔马律.mp3
Normal file
BIN
Assets/Art/Sounds/奔马律.mp3
Normal file
Binary file not shown.
22
Assets/Art/Sounds/奔马律.mp3.meta
Normal file
22
Assets/Art/Sounds/奔马律.mp3.meta
Normal file
@ -0,0 +1,22 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 2ffc7ba6c1ce42a479ebfe40bfae36fb
|
||||
AudioImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 6
|
||||
defaultSettings:
|
||||
loadType: 0
|
||||
sampleRateSetting: 0
|
||||
sampleRateOverride: 44100
|
||||
compressionFormat: 1
|
||||
quality: 1
|
||||
conversionMode: 0
|
||||
platformSettingOverrides: {}
|
||||
forceToMono: 0
|
||||
normalize: 1
|
||||
preloadAudioData: 1
|
||||
loadInBackground: 0
|
||||
ambisonic: 0
|
||||
3D: 1
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
22
Assets/Art/Sounds/正常第一心音.wav.meta
Normal file
22
Assets/Art/Sounds/正常第一心音.wav.meta
Normal file
@ -0,0 +1,22 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 8663c6920f80d8a40a4a51b6511e2ce2
|
||||
AudioImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 6
|
||||
defaultSettings:
|
||||
loadType: 0
|
||||
sampleRateSetting: 0
|
||||
sampleRateOverride: 44100
|
||||
compressionFormat: 1
|
||||
quality: 1
|
||||
conversionMode: 0
|
||||
platformSettingOverrides: {}
|
||||
forceToMono: 0
|
||||
normalize: 1
|
||||
preloadAudioData: 1
|
||||
loadInBackground: 0
|
||||
ambisonic: 0
|
||||
3D: 1
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
BIN
Assets/Art/Sounds/正常第二心音.wav
Normal file
BIN
Assets/Art/Sounds/正常第二心音.wav
Normal file
Binary file not shown.
BIN
Assets/Art/Sounds/第一心音减弱.mp3
Normal file
BIN
Assets/Art/Sounds/第一心音减弱.mp3
Normal file
Binary file not shown.
22
Assets/Art/Sounds/第一心音减弱.mp3.meta
Normal file
22
Assets/Art/Sounds/第一心音减弱.mp3.meta
Normal file
@ -0,0 +1,22 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 14bf6f408607fe64e811a3de4d2a2ebe
|
||||
AudioImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 6
|
||||
defaultSettings:
|
||||
loadType: 0
|
||||
sampleRateSetting: 0
|
||||
sampleRateOverride: 44100
|
||||
compressionFormat: 1
|
||||
quality: 1
|
||||
conversionMode: 0
|
||||
platformSettingOverrides: {}
|
||||
forceToMono: 0
|
||||
normalize: 1
|
||||
preloadAudioData: 1
|
||||
loadInBackground: 0
|
||||
ambisonic: 0
|
||||
3D: 1
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
BIN
Assets/Art/Sounds/第一心音分裂.mp3
Normal file
BIN
Assets/Art/Sounds/第一心音分裂.mp3
Normal file
Binary file not shown.
22
Assets/Art/Sounds/第一心音分裂.mp3.meta
Normal file
22
Assets/Art/Sounds/第一心音分裂.mp3.meta
Normal file
@ -0,0 +1,22 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 34aeded4ae707e84db8cf58dff3d6bcc
|
||||
AudioImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 6
|
||||
defaultSettings:
|
||||
loadType: 0
|
||||
sampleRateSetting: 0
|
||||
sampleRateOverride: 44100
|
||||
compressionFormat: 1
|
||||
quality: 1
|
||||
conversionMode: 0
|
||||
platformSettingOverrides: {}
|
||||
forceToMono: 0
|
||||
normalize: 1
|
||||
preloadAudioData: 1
|
||||
loadInBackground: 0
|
||||
ambisonic: 0
|
||||
3D: 1
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
BIN
Assets/Art/Sounds/第一心音增强.mp3
Normal file
BIN
Assets/Art/Sounds/第一心音增强.mp3
Normal file
Binary file not shown.
22
Assets/Art/Sounds/第一心音增强.mp3.meta
Normal file
22
Assets/Art/Sounds/第一心音增强.mp3.meta
Normal file
@ -0,0 +1,22 @@
|
||||
fileFormatVersion: 2
|
||||
guid: e34748e5f1a82634a9b3c536855ba0cd
|
||||
AudioImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 6
|
||||
defaultSettings:
|
||||
loadType: 0
|
||||
sampleRateSetting: 0
|
||||
sampleRateOverride: 44100
|
||||
compressionFormat: 1
|
||||
quality: 1
|
||||
conversionMode: 0
|
||||
platformSettingOverrides: {}
|
||||
forceToMono: 0
|
||||
normalize: 1
|
||||
preloadAudioData: 1
|
||||
loadInBackground: 0
|
||||
ambisonic: 0
|
||||
3D: 1
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
136
Assets/Art/Timeline/奔马律_听诊器.playable
Normal file
136
Assets/Art/Timeline/奔马律_听诊器.playable
Normal file
@ -0,0 +1,136 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!114 &-1248900645449450727
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 1
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 0}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 4f10dd60657c6004587f237a7e90f8e4, type: 3}
|
||||
m_Name: AudioPlayableAsset
|
||||
m_EditorClassIdentifier:
|
||||
m_Clip: {fileID: 8300000, guid: 2ffc7ba6c1ce42a479ebfe40bfae36fb, type: 3}
|
||||
m_Loop: 0
|
||||
m_bufferingTime: 0.1
|
||||
m_ClipProperties:
|
||||
volume: 1
|
||||
--- !u!114 &11400000
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 0}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: bfda56da833e2384a9677cd3c976a436, type: 3}
|
||||
m_Name: "\u5954\u9A6C\u5F8B_\u542C\u8BCA\u5668"
|
||||
m_EditorClassIdentifier:
|
||||
m_Version: 0
|
||||
m_Tracks:
|
||||
- {fileID: 7469664703042971126}
|
||||
m_FixedDuration: 0
|
||||
m_EditorSettings:
|
||||
m_Framerate: 60
|
||||
m_ScenePreview: 1
|
||||
m_DurationMode: 0
|
||||
m_MarkerTrack: {fileID: 0}
|
||||
--- !u!114 &7469664703042971126
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 1
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 0}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 8b22792c3b570444eb18cb78c2af3a74, type: 3}
|
||||
m_Name: Audio Track
|
||||
m_EditorClassIdentifier:
|
||||
m_Version: 3
|
||||
m_AnimClip: {fileID: 0}
|
||||
m_Locked: 0
|
||||
m_Muted: 0
|
||||
m_CustomPlayableFullTypename:
|
||||
m_Curves: {fileID: 0}
|
||||
m_Parent: {fileID: 11400000}
|
||||
m_Children: []
|
||||
m_Clips:
|
||||
- m_Version: 1
|
||||
m_Start: 0
|
||||
m_ClipIn: 0
|
||||
m_Asset: {fileID: -1248900645449450727}
|
||||
m_Duration: 9.432
|
||||
m_TimeScale: 1
|
||||
m_ParentTrack: {fileID: 7469664703042971126}
|
||||
m_EaseInDuration: 0
|
||||
m_EaseOutDuration: 0
|
||||
m_BlendInDuration: -1
|
||||
m_BlendOutDuration: -1
|
||||
m_MixInCurve:
|
||||
serializedVersion: 2
|
||||
m_Curve:
|
||||
- serializedVersion: 3
|
||||
time: 0
|
||||
value: 0
|
||||
inSlope: 0
|
||||
outSlope: 0
|
||||
tangentMode: 0
|
||||
weightedMode: 0
|
||||
inWeight: 0
|
||||
outWeight: 0
|
||||
- serializedVersion: 3
|
||||
time: 1
|
||||
value: 1
|
||||
inSlope: 0
|
||||
outSlope: 0
|
||||
tangentMode: 0
|
||||
weightedMode: 0
|
||||
inWeight: 0
|
||||
outWeight: 0
|
||||
m_PreInfinity: 2
|
||||
m_PostInfinity: 2
|
||||
m_RotationOrder: 4
|
||||
m_MixOutCurve:
|
||||
serializedVersion: 2
|
||||
m_Curve:
|
||||
- serializedVersion: 3
|
||||
time: 0
|
||||
value: 1
|
||||
inSlope: 0
|
||||
outSlope: 0
|
||||
tangentMode: 0
|
||||
weightedMode: 0
|
||||
inWeight: 0
|
||||
outWeight: 0
|
||||
- serializedVersion: 3
|
||||
time: 1
|
||||
value: 0
|
||||
inSlope: 0
|
||||
outSlope: 0
|
||||
tangentMode: 0
|
||||
weightedMode: 0
|
||||
inWeight: 0
|
||||
outWeight: 0
|
||||
m_PreInfinity: 2
|
||||
m_PostInfinity: 2
|
||||
m_RotationOrder: 4
|
||||
m_BlendInCurveMode: 0
|
||||
m_BlendOutCurveMode: 0
|
||||
m_ExposedParameterNames: []
|
||||
m_AnimationCurves: {fileID: 0}
|
||||
m_Recordable: 0
|
||||
m_PostExtrapolationMode: 0
|
||||
m_PreExtrapolationMode: 0
|
||||
m_PostExtrapolationTime: 0
|
||||
m_PreExtrapolationTime: 0
|
||||
m_DisplayName: "\u5954\u9A6C\u5F8B"
|
||||
m_Markers:
|
||||
m_Objects: []
|
||||
m_TrackProperties:
|
||||
volume: 1
|
||||
stereoPan: 0
|
||||
spatialBlend: 0
|
||||
@ -1,6 +1,6 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!114 &-9045559739489926966
|
||||
--- !u!114 &-5059697620709745579
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 1
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
@ -12,7 +12,7 @@ MonoBehaviour:
|
||||
m_Script: {fileID: 11500000, guid: 4f10dd60657c6004587f237a7e90f8e4, type: 3}
|
||||
m_Name: AudioPlayableAsset
|
||||
m_EditorClassIdentifier:
|
||||
m_Clip: {fileID: 8300000, guid: d07f7658b2465124caa0fda5d508acc7, type: 3}
|
||||
m_Clip: {fileID: 8300000, guid: 34aeded4ae707e84db8cf58dff3d6bcc, type: 3}
|
||||
m_Loop: 0
|
||||
m_bufferingTime: 0.1
|
||||
m_ClipProperties:
|
||||
@ -27,7 +27,7 @@ MonoBehaviour:
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: bfda56da833e2384a9677cd3c976a436, type: 3}
|
||||
m_Name: "\u5FC3\u97F3\u5206\u88C2\u548C\u91CD\u590D2"
|
||||
m_Name: "\u5FC3\u97F3\u5206\u88C2\u548C\u91CD\u590D_\u542C\u8BCA\u5668"
|
||||
m_EditorClassIdentifier:
|
||||
m_Version: 0
|
||||
m_Tracks:
|
||||
@ -62,8 +62,8 @@ MonoBehaviour:
|
||||
- m_Version: 1
|
||||
m_Start: 0
|
||||
m_ClipIn: 0
|
||||
m_Asset: {fileID: -9045559739489926966}
|
||||
m_Duration: 2.016
|
||||
m_Asset: {fileID: -5059697620709745579}
|
||||
m_Duration: 10.762448979591836
|
||||
m_TimeScale: 1
|
||||
m_ParentTrack: {fileID: 5442286774809822241}
|
||||
m_EaseInDuration: 0
|
||||
@ -127,7 +127,7 @@ MonoBehaviour:
|
||||
m_PreExtrapolationMode: 0
|
||||
m_PostExtrapolationTime: 0
|
||||
m_PreExtrapolationTime: 0
|
||||
m_DisplayName: "\u58F0\u97F3\u672A\u63D0\u4F9B"
|
||||
m_DisplayName: "\u7B2C\u4E00\u5FC3\u97F3\u5206\u88C2"
|
||||
m_Markers:
|
||||
m_Objects: []
|
||||
m_TrackProperties:
|
||||
@ -10,7 +10,7 @@ MonoBehaviour:
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: bfda56da833e2384a9677cd3c976a436, type: 3}
|
||||
m_Name: "\u5FC3\u97F3\u6D51\u6D4A2"
|
||||
m_Name: "\u5FC3\u97F3\u6D51\u6D4A_\u542C\u8BCA\u5668"
|
||||
m_EditorClassIdentifier:
|
||||
m_Version: 0
|
||||
m_Tracks:
|
||||
@ -24,7 +24,7 @@ MonoBehaviour:
|
||||
m_Markers:
|
||||
m_Objects: []
|
||||
m_PostPlaybackState: 3
|
||||
--- !u!114 &-4230890995646464117
|
||||
--- !u!114 &-6367003506017768214
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 1
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
@ -36,7 +36,7 @@ MonoBehaviour:
|
||||
m_Script: {fileID: 11500000, guid: 4f10dd60657c6004587f237a7e90f8e4, type: 3}
|
||||
m_Name: AudioPlayableAsset
|
||||
m_EditorClassIdentifier:
|
||||
m_Clip: {fileID: 8300000, guid: d07f7658b2465124caa0fda5d508acc7, type: 3}
|
||||
m_Clip: {fileID: 8300000, guid: 8663c6920f80d8a40a4a51b6511e2ce2, type: 3}
|
||||
m_Loop: 0
|
||||
m_bufferingTime: 0.1
|
||||
m_ClipProperties:
|
||||
@ -89,8 +89,8 @@ MonoBehaviour:
|
||||
- m_Version: 1
|
||||
m_Start: 0
|
||||
m_ClipIn: 0
|
||||
m_Asset: {fileID: -4230890995646464117}
|
||||
m_Duration: 2.016
|
||||
m_Asset: {fileID: -6367003506017768214}
|
||||
m_Duration: 4.591
|
||||
m_TimeScale: 1
|
||||
m_ParentTrack: {fileID: -726815658383365073}
|
||||
m_EaseInDuration: 0
|
||||
@ -154,7 +154,7 @@ MonoBehaviour:
|
||||
m_PreExtrapolationMode: 0
|
||||
m_PostExtrapolationTime: 0
|
||||
m_PreExtrapolationTime: 0
|
||||
m_DisplayName: "\u58F0\u97F3\u672A\u63D0\u4F9B"
|
||||
m_DisplayName: "\u6B63\u5E38\u7B2C\u4E00\u5FC3\u97F3"
|
||||
m_Markers:
|
||||
m_Objects: []
|
||||
m_TrackProperties:
|
||||
@ -171,7 +171,7 @@ MonoBehaviour:
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: bfda56da833e2384a9677cd3c976a436, type: 3}
|
||||
m_Name: "\u6B63\u5E38\u7B2C\u4E00\u5FC3\u97F32"
|
||||
m_Name: "\u6B63\u5E38\u7B2C\u4E00\u5FC3\u97F3_\u542C\u8BCA\u5668"
|
||||
m_EditorClassIdentifier:
|
||||
m_Version: 0
|
||||
m_Tracks:
|
||||
@ -154,7 +154,7 @@ MonoBehaviour:
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: bfda56da833e2384a9677cd3c976a436, type: 3}
|
||||
m_Name: "\u6B63\u5E38\u7B2C\u4E8C\u5FC3\u97F32"
|
||||
m_Name: "\u6B63\u5E38\u7B2C\u4E8C\u5FC3\u97F3_\u542C\u8BCA\u5668"
|
||||
m_EditorClassIdentifier:
|
||||
m_Version: 0
|
||||
m_Tracks:
|
||||
@ -27,7 +27,7 @@ MonoBehaviour:
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: bfda56da833e2384a9677cd3c976a436, type: 3}
|
||||
m_Name: "\u7AA6\u6027\u5FC3\u52A8\u8FC7\u7F132"
|
||||
m_Name: "\u7AA6\u6027\u5FC3\u52A8\u8FC7\u7F13_\u542C\u8BCA\u5668"
|
||||
m_EditorClassIdentifier:
|
||||
m_Version: 0
|
||||
m_Tracks:
|
||||
@ -27,7 +27,7 @@ MonoBehaviour:
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: bfda56da833e2384a9677cd3c976a436, type: 3}
|
||||
m_Name: "\u7AA6\u6027\u5FC3\u52A8\u8FC7\u901F2"
|
||||
m_Name: "\u7AA6\u6027\u5FC3\u52A8\u8FC7\u901F_\u542C\u8BCA\u5668"
|
||||
m_EditorClassIdentifier:
|
||||
m_Version: 0
|
||||
m_Tracks:
|
||||
@ -1,136 +0,0 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!114 &-6857886648165494104
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 1
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 0}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 8b22792c3b570444eb18cb78c2af3a74, type: 3}
|
||||
m_Name: Audio Track
|
||||
m_EditorClassIdentifier:
|
||||
m_Version: 3
|
||||
m_AnimClip: {fileID: 0}
|
||||
m_Locked: 0
|
||||
m_Muted: 0
|
||||
m_CustomPlayableFullTypename:
|
||||
m_Curves: {fileID: 0}
|
||||
m_Parent: {fileID: 11400000}
|
||||
m_Children: []
|
||||
m_Clips:
|
||||
- m_Version: 1
|
||||
m_Start: 0
|
||||
m_ClipIn: 0
|
||||
m_Asset: {fileID: -3682862848631442880}
|
||||
m_Duration: 2.016
|
||||
m_TimeScale: 1
|
||||
m_ParentTrack: {fileID: -6857886648165494104}
|
||||
m_EaseInDuration: 0
|
||||
m_EaseOutDuration: 0
|
||||
m_BlendInDuration: -1
|
||||
m_BlendOutDuration: -1
|
||||
m_MixInCurve:
|
||||
serializedVersion: 2
|
||||
m_Curve:
|
||||
- serializedVersion: 3
|
||||
time: 0
|
||||
value: 0
|
||||
inSlope: 0
|
||||
outSlope: 0
|
||||
tangentMode: 0
|
||||
weightedMode: 0
|
||||
inWeight: 0
|
||||
outWeight: 0
|
||||
- serializedVersion: 3
|
||||
time: 1
|
||||
value: 1
|
||||
inSlope: 0
|
||||
outSlope: 0
|
||||
tangentMode: 0
|
||||
weightedMode: 0
|
||||
inWeight: 0
|
||||
outWeight: 0
|
||||
m_PreInfinity: 2
|
||||
m_PostInfinity: 2
|
||||
m_RotationOrder: 4
|
||||
m_MixOutCurve:
|
||||
serializedVersion: 2
|
||||
m_Curve:
|
||||
- serializedVersion: 3
|
||||
time: 0
|
||||
value: 1
|
||||
inSlope: 0
|
||||
outSlope: 0
|
||||
tangentMode: 0
|
||||
weightedMode: 0
|
||||
inWeight: 0
|
||||
outWeight: 0
|
||||
- serializedVersion: 3
|
||||
time: 1
|
||||
value: 0
|
||||
inSlope: 0
|
||||
outSlope: 0
|
||||
tangentMode: 0
|
||||
weightedMode: 0
|
||||
inWeight: 0
|
||||
outWeight: 0
|
||||
m_PreInfinity: 2
|
||||
m_PostInfinity: 2
|
||||
m_RotationOrder: 4
|
||||
m_BlendInCurveMode: 0
|
||||
m_BlendOutCurveMode: 0
|
||||
m_ExposedParameterNames: []
|
||||
m_AnimationCurves: {fileID: 0}
|
||||
m_Recordable: 0
|
||||
m_PostExtrapolationMode: 0
|
||||
m_PreExtrapolationMode: 0
|
||||
m_PostExtrapolationTime: 0
|
||||
m_PreExtrapolationTime: 0
|
||||
m_DisplayName: "\u58F0\u97F3\u672A\u63D0\u4F9B"
|
||||
m_Markers:
|
||||
m_Objects: []
|
||||
m_TrackProperties:
|
||||
volume: 1
|
||||
stereoPan: 0
|
||||
spatialBlend: 0
|
||||
--- !u!114 &-3682862848631442880
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 1
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 0}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 4f10dd60657c6004587f237a7e90f8e4, type: 3}
|
||||
m_Name: AudioPlayableAsset
|
||||
m_EditorClassIdentifier:
|
||||
m_Clip: {fileID: 8300000, guid: d07f7658b2465124caa0fda5d508acc7, type: 3}
|
||||
m_Loop: 0
|
||||
m_bufferingTime: 0.1
|
||||
m_ClipProperties:
|
||||
volume: 1
|
||||
--- !u!114 &11400000
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 0}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: bfda56da833e2384a9677cd3c976a436, type: 3}
|
||||
m_Name: "\u7B2C\u4E00\u7B2C\u4E8C\u5FC3\u97F3\u51CF\u5F312"
|
||||
m_EditorClassIdentifier:
|
||||
m_Version: 0
|
||||
m_Tracks:
|
||||
- {fileID: -6857886648165494104}
|
||||
m_FixedDuration: 0
|
||||
m_EditorSettings:
|
||||
m_Framerate: 60
|
||||
m_ScenePreview: 1
|
||||
m_DurationMode: 0
|
||||
m_MarkerTrack: {fileID: 0}
|
||||
136
Assets/Art/Timeline/第一第二心音减弱_听诊器.playable
Normal file
136
Assets/Art/Timeline/第一第二心音减弱_听诊器.playable
Normal file
@ -0,0 +1,136 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!114 &11400000
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 0}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: bfda56da833e2384a9677cd3c976a436, type: 3}
|
||||
m_Name: "\u7B2C\u4E00\u7B2C\u4E8C\u5FC3\u97F3\u51CF\u5F31_\u542C\u8BCA\u5668"
|
||||
m_EditorClassIdentifier:
|
||||
m_Version: 0
|
||||
m_Tracks:
|
||||
- {fileID: 6711058881314440834}
|
||||
m_FixedDuration: 0
|
||||
m_EditorSettings:
|
||||
m_Framerate: 60
|
||||
m_ScenePreview: 1
|
||||
m_DurationMode: 0
|
||||
m_MarkerTrack: {fileID: 0}
|
||||
--- !u!114 &1096005867387797481
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 1
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 0}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 4f10dd60657c6004587f237a7e90f8e4, type: 3}
|
||||
m_Name: AudioPlayableAsset
|
||||
m_EditorClassIdentifier:
|
||||
m_Clip: {fileID: 8300000, guid: 14bf6f408607fe64e811a3de4d2a2ebe, type: 3}
|
||||
m_Loop: 0
|
||||
m_bufferingTime: 0.1
|
||||
m_ClipProperties:
|
||||
volume: 1
|
||||
--- !u!114 &6711058881314440834
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 1
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 0}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 8b22792c3b570444eb18cb78c2af3a74, type: 3}
|
||||
m_Name: Audio Track (1)
|
||||
m_EditorClassIdentifier:
|
||||
m_Version: 3
|
||||
m_AnimClip: {fileID: 0}
|
||||
m_Locked: 0
|
||||
m_Muted: 0
|
||||
m_CustomPlayableFullTypename:
|
||||
m_Curves: {fileID: 0}
|
||||
m_Parent: {fileID: 11400000}
|
||||
m_Children: []
|
||||
m_Clips:
|
||||
- m_Version: 1
|
||||
m_Start: 0
|
||||
m_ClipIn: 0
|
||||
m_Asset: {fileID: 1096005867387797481}
|
||||
m_Duration: 7.992
|
||||
m_TimeScale: 1
|
||||
m_ParentTrack: {fileID: 6711058881314440834}
|
||||
m_EaseInDuration: 0
|
||||
m_EaseOutDuration: 0
|
||||
m_BlendInDuration: -1
|
||||
m_BlendOutDuration: -1
|
||||
m_MixInCurve:
|
||||
serializedVersion: 2
|
||||
m_Curve:
|
||||
- serializedVersion: 3
|
||||
time: 0
|
||||
value: 0
|
||||
inSlope: 0
|
||||
outSlope: 0
|
||||
tangentMode: 0
|
||||
weightedMode: 0
|
||||
inWeight: 0
|
||||
outWeight: 0
|
||||
- serializedVersion: 3
|
||||
time: 1
|
||||
value: 1
|
||||
inSlope: 0
|
||||
outSlope: 0
|
||||
tangentMode: 0
|
||||
weightedMode: 0
|
||||
inWeight: 0
|
||||
outWeight: 0
|
||||
m_PreInfinity: 2
|
||||
m_PostInfinity: 2
|
||||
m_RotationOrder: 4
|
||||
m_MixOutCurve:
|
||||
serializedVersion: 2
|
||||
m_Curve:
|
||||
- serializedVersion: 3
|
||||
time: 0
|
||||
value: 1
|
||||
inSlope: 0
|
||||
outSlope: 0
|
||||
tangentMode: 0
|
||||
weightedMode: 0
|
||||
inWeight: 0
|
||||
outWeight: 0
|
||||
- serializedVersion: 3
|
||||
time: 1
|
||||
value: 0
|
||||
inSlope: 0
|
||||
outSlope: 0
|
||||
tangentMode: 0
|
||||
weightedMode: 0
|
||||
inWeight: 0
|
||||
outWeight: 0
|
||||
m_PreInfinity: 2
|
||||
m_PostInfinity: 2
|
||||
m_RotationOrder: 4
|
||||
m_BlendInCurveMode: 0
|
||||
m_BlendOutCurveMode: 0
|
||||
m_ExposedParameterNames: []
|
||||
m_AnimationCurves: {fileID: 0}
|
||||
m_Recordable: 0
|
||||
m_PostExtrapolationMode: 0
|
||||
m_PreExtrapolationMode: 0
|
||||
m_PostExtrapolationTime: 0
|
||||
m_PreExtrapolationTime: 0
|
||||
m_DisplayName: "\u7B2C\u4E00\u5FC3\u97F3\u51CF\u5F31"
|
||||
m_Markers:
|
||||
m_Objects: []
|
||||
m_TrackProperties:
|
||||
volume: 1
|
||||
stereoPan: 0
|
||||
spatialBlend: 0
|
||||
@ -24,8 +24,8 @@ MonoBehaviour:
|
||||
- m_Version: 1
|
||||
m_Start: 0
|
||||
m_ClipIn: 0
|
||||
m_Asset: {fileID: 6529333601120260302}
|
||||
m_Duration: 2.016
|
||||
m_Asset: {fileID: 691545319107667170}
|
||||
m_Duration: 17.388
|
||||
m_TimeScale: 1
|
||||
m_ParentTrack: {fileID: -144014835818493024}
|
||||
m_EaseInDuration: 0
|
||||
@ -89,7 +89,7 @@ MonoBehaviour:
|
||||
m_PreExtrapolationMode: 0
|
||||
m_PostExtrapolationTime: 0
|
||||
m_PreExtrapolationTime: 0
|
||||
m_DisplayName: "\u58F0\u97F3\u672A\u63D0\u4F9B"
|
||||
m_DisplayName: "\u7B2C\u4E00\u5FC3\u97F3\u589E\u5F3A"
|
||||
m_Markers:
|
||||
m_Objects: []
|
||||
m_TrackProperties:
|
||||
@ -106,7 +106,7 @@ MonoBehaviour:
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: bfda56da833e2384a9677cd3c976a436, type: 3}
|
||||
m_Name: "\u7B2C\u4E00\u7B2C\u4E8C\u5FC3\u97F3\u589E\u5F3A2"
|
||||
m_Name: "\u7B2C\u4E00\u7B2C\u4E8C\u5FC3\u97F3\u589E\u5F3A_\u542C\u8BCA\u5668"
|
||||
m_EditorClassIdentifier:
|
||||
m_Version: 0
|
||||
m_Tracks:
|
||||
@ -117,7 +117,7 @@ MonoBehaviour:
|
||||
m_ScenePreview: 1
|
||||
m_DurationMode: 0
|
||||
m_MarkerTrack: {fileID: 0}
|
||||
--- !u!114 &6529333601120260302
|
||||
--- !u!114 &691545319107667170
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 1
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
@ -129,7 +129,7 @@ MonoBehaviour:
|
||||
m_Script: {fileID: 11500000, guid: 4f10dd60657c6004587f237a7e90f8e4, type: 3}
|
||||
m_Name: AudioPlayableAsset
|
||||
m_EditorClassIdentifier:
|
||||
m_Clip: {fileID: 8300000, guid: d07f7658b2465124caa0fda5d508acc7, type: 3}
|
||||
m_Clip: {fileID: 8300000, guid: e34748e5f1a82634a9b3c536855ba0cd, type: 3}
|
||||
m_Loop: 0
|
||||
m_bufferingTime: 0.1
|
||||
m_ClipProperties:
|
||||
@ -1,5 +1,29 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!114 &-1940343193283857549
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 1
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 0}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 21bf7f712d84d26478ebe6a299f21738, type: 3}
|
||||
m_Name: Activation Track (1)
|
||||
m_EditorClassIdentifier:
|
||||
m_Version: 3
|
||||
m_AnimClip: {fileID: 0}
|
||||
m_Locked: 0
|
||||
m_Muted: 0
|
||||
m_CustomPlayableFullTypename:
|
||||
m_Curves: {fileID: 0}
|
||||
m_Parent: {fileID: 11400000}
|
||||
m_Children: []
|
||||
m_Clips: []
|
||||
m_Markers:
|
||||
m_Objects: []
|
||||
m_PostPlaybackState: 3
|
||||
--- !u!114 &11400000
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
@ -14,14 +38,18 @@ MonoBehaviour:
|
||||
m_EditorClassIdentifier:
|
||||
m_Version: 0
|
||||
m_Tracks:
|
||||
- {fileID: 5678772466980621166}
|
||||
- {fileID: 4859606116589885233}
|
||||
- {fileID: -1940343193283857549}
|
||||
- {fileID: 6208674391307429792}
|
||||
- {fileID: 7163615312640923205}
|
||||
- {fileID: 6953298672146540840}
|
||||
m_FixedDuration: 0
|
||||
m_EditorSettings:
|
||||
m_Framerate: 60
|
||||
m_ScenePreview: 1
|
||||
m_DurationMode: 0
|
||||
m_MarkerTrack: {fileID: 0}
|
||||
--- !u!114 &5678772466980621166
|
||||
--- !u!114 &4859606116589885233
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 1
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
@ -30,8 +58,8 @@ MonoBehaviour:
|
||||
m_GameObject: {fileID: 0}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 8b22792c3b570444eb18cb78c2af3a74, type: 3}
|
||||
m_Name: Audio Track
|
||||
m_Script: {fileID: 11500000, guid: 21bf7f712d84d26478ebe6a299f21738, type: 3}
|
||||
m_Name: Activation Track
|
||||
m_EditorClassIdentifier:
|
||||
m_Version: 3
|
||||
m_AnimClip: {fileID: 0}
|
||||
@ -45,14 +73,14 @@ MonoBehaviour:
|
||||
- m_Version: 1
|
||||
m_Start: 0
|
||||
m_ClipIn: 0
|
||||
m_Asset: {fileID: 7239779401549911233}
|
||||
m_Duration: 2.016
|
||||
m_Asset: {fileID: 6523382554995099190}
|
||||
m_Duration: 0.5
|
||||
m_TimeScale: 1
|
||||
m_ParentTrack: {fileID: 5678772466980621166}
|
||||
m_ParentTrack: {fileID: 4859606116589885233}
|
||||
m_EaseInDuration: 0
|
||||
m_EaseOutDuration: 0
|
||||
m_BlendInDuration: -1
|
||||
m_BlendOutDuration: -1
|
||||
m_BlendInDuration: 0
|
||||
m_BlendOutDuration: 0
|
||||
m_MixInCurve:
|
||||
serializedVersion: 2
|
||||
m_Curve:
|
||||
@ -110,14 +138,11 @@ MonoBehaviour:
|
||||
m_PreExtrapolationMode: 0
|
||||
m_PostExtrapolationTime: 0
|
||||
m_PreExtrapolationTime: 0
|
||||
m_DisplayName: "\u58F0\u97F3\u672A\u63D0\u4F9B"
|
||||
m_DisplayName: Active
|
||||
m_Markers:
|
||||
m_Objects: []
|
||||
m_TrackProperties:
|
||||
volume: 1
|
||||
stereoPan: 0
|
||||
spatialBlend: 0
|
||||
--- !u!114 &7239779401549911233
|
||||
m_PostPlaybackState: 3
|
||||
--- !u!114 &6208674391307429792
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 1
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
@ -126,11 +151,78 @@ MonoBehaviour:
|
||||
m_GameObject: {fileID: 0}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 4f10dd60657c6004587f237a7e90f8e4, type: 3}
|
||||
m_Name: AudioPlayableAsset
|
||||
m_Script: {fileID: 11500000, guid: 21bf7f712d84d26478ebe6a299f21738, type: 3}
|
||||
m_Name: Activation Track (2)
|
||||
m_EditorClassIdentifier:
|
||||
m_Clip: {fileID: 8300000, guid: d07f7658b2465124caa0fda5d508acc7, type: 3}
|
||||
m_Loop: 0
|
||||
m_bufferingTime: 0.1
|
||||
m_ClipProperties:
|
||||
volume: 1
|
||||
m_Version: 3
|
||||
m_AnimClip: {fileID: 0}
|
||||
m_Locked: 0
|
||||
m_Muted: 0
|
||||
m_CustomPlayableFullTypename:
|
||||
m_Curves: {fileID: 0}
|
||||
m_Parent: {fileID: 11400000}
|
||||
m_Children: []
|
||||
m_Clips: []
|
||||
m_Markers:
|
||||
m_Objects: []
|
||||
m_PostPlaybackState: 3
|
||||
--- !u!114 &6523382554995099190
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 1
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 0}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: fde0d25a170598d46a0b9dc16b4527a5, type: 3}
|
||||
m_Name: ActivationPlayableAsset(Clone)(Clone)(Clone)(Clone)(Clone)(Clone)
|
||||
m_EditorClassIdentifier:
|
||||
--- !u!114 &6953298672146540840
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 1
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 0}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 21bf7f712d84d26478ebe6a299f21738, type: 3}
|
||||
m_Name: Activation Track (4)
|
||||
m_EditorClassIdentifier:
|
||||
m_Version: 3
|
||||
m_AnimClip: {fileID: 0}
|
||||
m_Locked: 0
|
||||
m_Muted: 0
|
||||
m_CustomPlayableFullTypename:
|
||||
m_Curves: {fileID: 0}
|
||||
m_Parent: {fileID: 11400000}
|
||||
m_Children: []
|
||||
m_Clips: []
|
||||
m_Markers:
|
||||
m_Objects: []
|
||||
m_PostPlaybackState: 3
|
||||
--- !u!114 &7163615312640923205
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 1
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 0}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 21bf7f712d84d26478ebe6a299f21738, type: 3}
|
||||
m_Name: Activation Track (3)
|
||||
m_EditorClassIdentifier:
|
||||
m_Version: 3
|
||||
m_AnimClip: {fileID: 0}
|
||||
m_Locked: 0
|
||||
m_Muted: 0
|
||||
m_CustomPlayableFullTypename:
|
||||
m_Curves: {fileID: 0}
|
||||
m_Parent: {fileID: 11400000}
|
||||
m_Children: []
|
||||
m_Clips: []
|
||||
m_Markers:
|
||||
m_Objects: []
|
||||
m_PostPlaybackState: 3
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: d0407b7fda0c0144b8d3c4a0e9f6e49a
|
||||
guid: f2da46d45f002f643bcc8bb9243e719a
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 11400000
|
||||
|
||||
@ -1,228 +0,0 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!114 &-1940343193283857549
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 1
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 0}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 21bf7f712d84d26478ebe6a299f21738, type: 3}
|
||||
m_Name: Activation Track (1)
|
||||
m_EditorClassIdentifier:
|
||||
m_Version: 3
|
||||
m_AnimClip: {fileID: 0}
|
||||
m_Locked: 0
|
||||
m_Muted: 0
|
||||
m_CustomPlayableFullTypename:
|
||||
m_Curves: {fileID: 0}
|
||||
m_Parent: {fileID: 11400000}
|
||||
m_Children: []
|
||||
m_Clips: []
|
||||
m_Markers:
|
||||
m_Objects: []
|
||||
m_PostPlaybackState: 3
|
||||
--- !u!114 &11400000
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 0}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: bfda56da833e2384a9677cd3c976a436, type: 3}
|
||||
m_Name: "\u91D1\u5C5E\u58F0\u97F32"
|
||||
m_EditorClassIdentifier:
|
||||
m_Version: 0
|
||||
m_Tracks:
|
||||
- {fileID: 4859606116589885233}
|
||||
- {fileID: -1940343193283857549}
|
||||
- {fileID: 6208674391307429792}
|
||||
- {fileID: 7163615312640923205}
|
||||
- {fileID: 6953298672146540840}
|
||||
m_FixedDuration: 0
|
||||
m_EditorSettings:
|
||||
m_Framerate: 60
|
||||
m_ScenePreview: 1
|
||||
m_DurationMode: 0
|
||||
m_MarkerTrack: {fileID: 0}
|
||||
--- !u!114 &4859606116589885233
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 1
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 0}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 21bf7f712d84d26478ebe6a299f21738, type: 3}
|
||||
m_Name: Activation Track
|
||||
m_EditorClassIdentifier:
|
||||
m_Version: 3
|
||||
m_AnimClip: {fileID: 0}
|
||||
m_Locked: 0
|
||||
m_Muted: 0
|
||||
m_CustomPlayableFullTypename:
|
||||
m_Curves: {fileID: 0}
|
||||
m_Parent: {fileID: 11400000}
|
||||
m_Children: []
|
||||
m_Clips:
|
||||
- m_Version: 1
|
||||
m_Start: 0
|
||||
m_ClipIn: 0
|
||||
m_Asset: {fileID: 6523382554995099190}
|
||||
m_Duration: 0.5
|
||||
m_TimeScale: 1
|
||||
m_ParentTrack: {fileID: 4859606116589885233}
|
||||
m_EaseInDuration: 0
|
||||
m_EaseOutDuration: 0
|
||||
m_BlendInDuration: 0
|
||||
m_BlendOutDuration: 0
|
||||
m_MixInCurve:
|
||||
serializedVersion: 2
|
||||
m_Curve:
|
||||
- serializedVersion: 3
|
||||
time: 0
|
||||
value: 0
|
||||
inSlope: 0
|
||||
outSlope: 0
|
||||
tangentMode: 0
|
||||
weightedMode: 0
|
||||
inWeight: 0
|
||||
outWeight: 0
|
||||
- serializedVersion: 3
|
||||
time: 1
|
||||
value: 1
|
||||
inSlope: 0
|
||||
outSlope: 0
|
||||
tangentMode: 0
|
||||
weightedMode: 0
|
||||
inWeight: 0
|
||||
outWeight: 0
|
||||
m_PreInfinity: 2
|
||||
m_PostInfinity: 2
|
||||
m_RotationOrder: 4
|
||||
m_MixOutCurve:
|
||||
serializedVersion: 2
|
||||
m_Curve:
|
||||
- serializedVersion: 3
|
||||
time: 0
|
||||
value: 1
|
||||
inSlope: 0
|
||||
outSlope: 0
|
||||
tangentMode: 0
|
||||
weightedMode: 0
|
||||
inWeight: 0
|
||||
outWeight: 0
|
||||
- serializedVersion: 3
|
||||
time: 1
|
||||
value: 0
|
||||
inSlope: 0
|
||||
outSlope: 0
|
||||
tangentMode: 0
|
||||
weightedMode: 0
|
||||
inWeight: 0
|
||||
outWeight: 0
|
||||
m_PreInfinity: 2
|
||||
m_PostInfinity: 2
|
||||
m_RotationOrder: 4
|
||||
m_BlendInCurveMode: 0
|
||||
m_BlendOutCurveMode: 0
|
||||
m_ExposedParameterNames: []
|
||||
m_AnimationCurves: {fileID: 0}
|
||||
m_Recordable: 0
|
||||
m_PostExtrapolationMode: 0
|
||||
m_PreExtrapolationMode: 0
|
||||
m_PostExtrapolationTime: 0
|
||||
m_PreExtrapolationTime: 0
|
||||
m_DisplayName: Active
|
||||
m_Markers:
|
||||
m_Objects: []
|
||||
m_PostPlaybackState: 3
|
||||
--- !u!114 &6208674391307429792
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 1
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 0}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 21bf7f712d84d26478ebe6a299f21738, type: 3}
|
||||
m_Name: Activation Track (2)
|
||||
m_EditorClassIdentifier:
|
||||
m_Version: 3
|
||||
m_AnimClip: {fileID: 0}
|
||||
m_Locked: 0
|
||||
m_Muted: 0
|
||||
m_CustomPlayableFullTypename:
|
||||
m_Curves: {fileID: 0}
|
||||
m_Parent: {fileID: 11400000}
|
||||
m_Children: []
|
||||
m_Clips: []
|
||||
m_Markers:
|
||||
m_Objects: []
|
||||
m_PostPlaybackState: 3
|
||||
--- !u!114 &6523382554995099190
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 1
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 0}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: fde0d25a170598d46a0b9dc16b4527a5, type: 3}
|
||||
m_Name: ActivationPlayableAsset(Clone)(Clone)(Clone)(Clone)(Clone)(Clone)
|
||||
m_EditorClassIdentifier:
|
||||
--- !u!114 &6953298672146540840
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 1
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 0}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 21bf7f712d84d26478ebe6a299f21738, type: 3}
|
||||
m_Name: Activation Track (4)
|
||||
m_EditorClassIdentifier:
|
||||
m_Version: 3
|
||||
m_AnimClip: {fileID: 0}
|
||||
m_Locked: 0
|
||||
m_Muted: 0
|
||||
m_CustomPlayableFullTypename:
|
||||
m_Curves: {fileID: 0}
|
||||
m_Parent: {fileID: 11400000}
|
||||
m_Children: []
|
||||
m_Clips: []
|
||||
m_Markers:
|
||||
m_Objects: []
|
||||
m_PostPlaybackState: 3
|
||||
--- !u!114 &7163615312640923205
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 1
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 0}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 21bf7f712d84d26478ebe6a299f21738, type: 3}
|
||||
m_Name: Activation Track (3)
|
||||
m_EditorClassIdentifier:
|
||||
m_Version: 3
|
||||
m_AnimClip: {fileID: 0}
|
||||
m_Locked: 0
|
||||
m_Muted: 0
|
||||
m_CustomPlayableFullTypename:
|
||||
m_Curves: {fileID: 0}
|
||||
m_Parent: {fileID: 11400000}
|
||||
m_Children: []
|
||||
m_Clips: []
|
||||
m_Markers:
|
||||
m_Objects: []
|
||||
m_PostPlaybackState: 3
|
||||
@ -1,22 +1,5 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!114 &-1839859891681908044
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 1
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 0}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 4f10dd60657c6004587f237a7e90f8e4, type: 3}
|
||||
m_Name: AudioPlayableAsset
|
||||
m_EditorClassIdentifier:
|
||||
m_Clip: {fileID: 8300000, guid: d07f7658b2465124caa0fda5d508acc7, type: 3}
|
||||
m_Loop: 0
|
||||
m_bufferingTime: 0.1
|
||||
m_ClipProperties:
|
||||
volume: 1
|
||||
--- !u!114 &11400000
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
@ -27,18 +10,18 @@ MonoBehaviour:
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: bfda56da833e2384a9677cd3c976a436, type: 3}
|
||||
m_Name: "\u5954\u9A6C\u5F8B2"
|
||||
m_Name: "\u91D1\u5C5E\u6837\u5FC3\u97F3_\u542C\u8BCA\u5668"
|
||||
m_EditorClassIdentifier:
|
||||
m_Version: 0
|
||||
m_Tracks:
|
||||
- {fileID: 7469664703042971126}
|
||||
- {fileID: 5678772466980621166}
|
||||
m_FixedDuration: 0
|
||||
m_EditorSettings:
|
||||
m_Framerate: 60
|
||||
m_ScenePreview: 1
|
||||
m_DurationMode: 0
|
||||
m_MarkerTrack: {fileID: 0}
|
||||
--- !u!114 &7469664703042971126
|
||||
--- !u!114 &5678772466980621166
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 1
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
@ -62,10 +45,10 @@ MonoBehaviour:
|
||||
- m_Version: 1
|
||||
m_Start: 0
|
||||
m_ClipIn: 0
|
||||
m_Asset: {fileID: -1839859891681908044}
|
||||
m_Asset: {fileID: 7239779401549911233}
|
||||
m_Duration: 2.016
|
||||
m_TimeScale: 1
|
||||
m_ParentTrack: {fileID: 7469664703042971126}
|
||||
m_ParentTrack: {fileID: 5678772466980621166}
|
||||
m_EaseInDuration: 0
|
||||
m_EaseOutDuration: 0
|
||||
m_BlendInDuration: -1
|
||||
@ -134,3 +117,20 @@ MonoBehaviour:
|
||||
volume: 1
|
||||
stereoPan: 0
|
||||
spatialBlend: 0
|
||||
--- !u!114 &7239779401549911233
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 1
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 0}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 4f10dd60657c6004587f237a7e90f8e4, type: 3}
|
||||
m_Name: AudioPlayableAsset
|
||||
m_EditorClassIdentifier:
|
||||
m_Clip: {fileID: 8300000, guid: d07f7658b2465124caa0fda5d508acc7, type: 3}
|
||||
m_Loop: 0
|
||||
m_bufferingTime: 0.1
|
||||
m_ClipProperties:
|
||||
volume: 1
|
||||
@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: f2da46d45f002f643bcc8bb9243e719a
|
||||
guid: d0407b7fda0c0144b8d3c4a0e9f6e49a
|
||||
NativeFormatImporter:
|
||||
externalObjects: {}
|
||||
mainObjectFileID: 11400000
|
||||
241
Assets/NextPanel.prefab
Normal file
241
Assets/NextPanel.prefab
Normal file
@ -0,0 +1,241 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!1 &5154920914500641450
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 5154920914500641451}
|
||||
m_Layer: 5
|
||||
m_Name: NextPanel
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 0
|
||||
--- !u!224 &5154920914500641451
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 5154920914500641450}
|
||||
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:
|
||||
- {fileID: 5154920915159830538}
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 1, y: 1}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 0, y: 0}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!1 &5154920915159830537
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 5154920915159830538}
|
||||
- component: {fileID: 5154920915159830541}
|
||||
- component: {fileID: 5154920915159830540}
|
||||
- component: {fileID: 5154920915159830539}
|
||||
m_Layer: 5
|
||||
m_Name: NextBtn
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &5154920915159830538
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 5154920915159830537}
|
||||
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:
|
||||
- {fileID: 5154920916347867180}
|
||||
m_Father: {fileID: 5154920914500641451}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0.5, y: 0}
|
||||
m_AnchorMax: {x: 0.5, y: 0}
|
||||
m_AnchoredPosition: {x: 0, y: 105.899994}
|
||||
m_SizeDelta: {x: 153.2125, y: 61.6745}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &5154920915159830541
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 5154920915159830537}
|
||||
m_CullTransparentMesh: 1
|
||||
--- !u!114 &5154920915159830540
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 5154920915159830537}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, 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_Sprite: {fileID: -741019565, guid: 4a76ecba8f8e40b47acecca435028b51, type: 3}
|
||||
m_Type: 0
|
||||
m_PreserveAspect: 0
|
||||
m_FillCenter: 1
|
||||
m_FillMethod: 4
|
||||
m_FillAmount: 1
|
||||
m_FillClockwise: 1
|
||||
m_FillOrigin: 0
|
||||
m_UseSpriteMesh: 0
|
||||
m_PixelsPerUnitMultiplier: 1
|
||||
--- !u!114 &5154920915159830539
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 5154920915159830537}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 4e29b1a8efbd4b44bb3f3716e73f07ff, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_Navigation:
|
||||
m_Mode: 3
|
||||
m_WrapAround: 0
|
||||
m_SelectOnUp: {fileID: 0}
|
||||
m_SelectOnDown: {fileID: 0}
|
||||
m_SelectOnLeft: {fileID: 0}
|
||||
m_SelectOnRight: {fileID: 0}
|
||||
m_Transition: 1
|
||||
m_Colors:
|
||||
m_NormalColor: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
|
||||
m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1}
|
||||
m_SelectedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
|
||||
m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608}
|
||||
m_ColorMultiplier: 1
|
||||
m_FadeDuration: 0.1
|
||||
m_SpriteState:
|
||||
m_HighlightedSprite: {fileID: 0}
|
||||
m_PressedSprite: {fileID: 0}
|
||||
m_SelectedSprite: {fileID: 0}
|
||||
m_DisabledSprite: {fileID: 0}
|
||||
m_AnimationTriggers:
|
||||
m_NormalTrigger: Normal
|
||||
m_HighlightedTrigger: Highlighted
|
||||
m_PressedTrigger: Pressed
|
||||
m_SelectedTrigger: Selected
|
||||
m_DisabledTrigger: Disabled
|
||||
m_Interactable: 1
|
||||
m_TargetGraphic: {fileID: 5154920915159830540}
|
||||
m_OnClick:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
--- !u!1 &5154920916347867179
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 5154920916347867180}
|
||||
- component: {fileID: 5154920916347867182}
|
||||
- component: {fileID: 5154920916347867181}
|
||||
m_Layer: 5
|
||||
m_Name: Text (Legacy)
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &5154920916347867180
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 5154920916347867179}
|
||||
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: 5154920915159830538}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
m_AnchorMax: {x: 1, y: 1}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 0, y: 0}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &5154920916347867182
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 5154920916347867179}
|
||||
m_CullTransparentMesh: 1
|
||||
--- !u!114 &5154920916347867181
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 5154920916347867179}
|
||||
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: 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_FontData:
|
||||
m_Font: {fileID: 12800000, guid: be667217d3d3a5447a0231196de062c0, type: 3}
|
||||
m_FontSize: 25
|
||||
m_FontStyle: 0
|
||||
m_BestFit: 0
|
||||
m_MinSize: 2
|
||||
m_MaxSize: 40
|
||||
m_Alignment: 4
|
||||
m_AlignByGeometry: 0
|
||||
m_RichText: 1
|
||||
m_HorizontalOverflow: 0
|
||||
m_VerticalOverflow: 0
|
||||
m_LineSpacing: 1
|
||||
m_Text: "\u4E0B\u4E00\u6B65"
|
||||
7
Assets/NextPanel.prefab.meta
Normal file
7
Assets/NextPanel.prefab.meta
Normal file
@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: ba407b636b8b0464fbb72886c3b11a9e
|
||||
PrefabImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -37,7 +37,7 @@ public class ChatUI : MonoBehaviour
|
||||
private float wakeUpCountdownTime = 5f;
|
||||
private float wakeUpCurrentTime;
|
||||
private Coroutine coroutine;
|
||||
public XunFeiWakeup xunFeiWakeup;//语音唤醒
|
||||
public ZXKWakeup xunFeiWakeup;//语音唤醒
|
||||
private bool chatUIOpen;
|
||||
private string speakTxt;
|
||||
public string SpeakTxt
|
||||
@ -66,15 +66,6 @@ public class ChatUI : MonoBehaviour
|
||||
thinking = value;
|
||||
}
|
||||
}
|
||||
//private bool typing;
|
||||
//public bool Typing
|
||||
//{
|
||||
// get { return typing; }
|
||||
// set
|
||||
// {
|
||||
// typing = value;
|
||||
// }
|
||||
//}
|
||||
private bool closed;
|
||||
Action action;
|
||||
private void Awake()
|
||||
@ -162,7 +153,7 @@ public class ChatUI : MonoBehaviour
|
||||
if (!string.IsNullOrEmpty(str))
|
||||
{
|
||||
Thinking = true;
|
||||
ChatAI.Instance.SendData(/*Regex.Replace(str, @"[\p{P}\p{S}]", "")*/str, str =>
|
||||
ChatAI.Instance.SendData(str, str =>
|
||||
{
|
||||
Thinking = false;
|
||||
wakeUpCurrentTime = 0;
|
||||
@ -174,11 +165,8 @@ public class ChatUI : MonoBehaviour
|
||||
}
|
||||
else
|
||||
{
|
||||
//coroutine = StartCoroutine(TypeText(0.18f * str.Length, str, str => GenChatTxt(str), () => Typing = false));
|
||||
GenChatTxt(str);
|
||||
//Typing = false;
|
||||
OnAppendMsg(0, MsgTypeEnum.Str, str);
|
||||
//Typing = true;
|
||||
ChatAI.Instance.PlayVoice(str, clip => {
|
||||
audioSource.clip = clip;
|
||||
audioSource.Play();
|
||||
@ -196,7 +184,7 @@ public class ChatUI : MonoBehaviour
|
||||
if (!string.IsNullOrEmpty(str))
|
||||
{
|
||||
Thinking = true;
|
||||
ChatAI.Instance.SendData(/*Regex.Replace(str, @"[\p{P}\p{S}]", "")*/str, str =>
|
||||
ChatAI.Instance.SendData(Regex.Replace(str, @"[\p{P}\p{S}]", ""), str =>
|
||||
{
|
||||
Thinking = false;
|
||||
wakeUpCurrentTime = 0;
|
||||
@ -208,11 +196,8 @@ public class ChatUI : MonoBehaviour
|
||||
}
|
||||
else
|
||||
{
|
||||
//coroutine = StartCoroutine(TypeText(0.18f * str.Length, str, str => GenChatTxt(str), () => Typing = false));
|
||||
GenChatTxtNext(str);
|
||||
//Typing = false;
|
||||
OnAppendMsg(0, MsgTypeEnum.Str, str);
|
||||
//Typing = true;
|
||||
ChatAI.Instance.PlayVoice(str, clip => {
|
||||
audioSource.clip = clip;
|
||||
audioSource.Play();
|
||||
@ -242,7 +227,6 @@ public class ChatUI : MonoBehaviour
|
||||
private void ResponseCallBack(string _response)
|
||||
{
|
||||
_response = _response.Trim();
|
||||
//VoiceBtnEnable();
|
||||
m_SendBtn.interactable = true;
|
||||
if (!string.IsNullOrEmpty(_response))
|
||||
{
|
||||
@ -333,7 +317,7 @@ public class ChatUI : MonoBehaviour
|
||||
}
|
||||
void Listener()
|
||||
{
|
||||
if (wakeUpCurrentTime <= 0 && !Thinking && /*!Typing*/ /*&& !audioSource.isPlaying &&*/ !chatUIOpen && !prefab_v_next.activeSelf && !prefab_h_next.activeSelf)
|
||||
if (wakeUpCurrentTime <= 0 && !Thinking && !chatUIOpen && !prefab_v_next.activeSelf && !prefab_h_next.activeSelf)
|
||||
{
|
||||
closed = false;
|
||||
wakeUpCurrentTime = 0;
|
||||
@ -341,42 +325,17 @@ public class ChatUI : MonoBehaviour
|
||||
audioSource.Stop();
|
||||
if (coroutine != null) StopCoroutine(coroutine);
|
||||
GenChatTxt("你好,我在");
|
||||
//Typing = true;
|
||||
audioSource.clip = welcomeAudioCilp;
|
||||
audioSource.Play();
|
||||
coroutine = StartCoroutine(WaitExecute(welcomeAudioCilp.length, () => {
|
||||
wakeUpCurrentTime = wakeUpCountdownTime;
|
||||
//Typing = false;
|
||||
ChatAI.Instance.StartRecording(str => {
|
||||
SpeakTxt = str;
|
||||
});
|
||||
}));
|
||||
}
|
||||
}
|
||||
//void Check(string txt)
|
||||
//{
|
||||
// if (wakeUpCurrentTime <= 0 && Regex.Replace(txt, @"[\p{P}\p{S}]", "").Contains("小智小智") && !Thinking && !Typing && !audioSource.isPlaying && !chatUIOpen)
|
||||
// {
|
||||
// closed = false;
|
||||
// wakeUpCurrentTime = 0;
|
||||
// ChatAI.Instance.StopVoice();
|
||||
// audioSource.Stop();
|
||||
// if (coroutine != null) StopCoroutine(coroutine);
|
||||
// GenChatTxt("你好,我在");
|
||||
// Typing = true;
|
||||
// audioSource.clip = welcomeAudioCilp;
|
||||
// audioSource.Play();
|
||||
// coroutine = StartCoroutine(WaitExecute(welcomeAudioCilp.length + 1.5f, () => {
|
||||
// wakeUpCurrentTime = wakeUpCountdownTime;
|
||||
// Typing = false;
|
||||
// }));
|
||||
// }
|
||||
// if (!audioSource.isPlaying && wakeUpCurrentTime > 0 && !Thinking && !Typing && !closed && !chatUIOpen)
|
||||
// {
|
||||
// Debug.Log("语音正在输入中: " + Regex.Replace(txt, @"[\p{P}\p{S}]", ""));
|
||||
// SpeakTxt = txt;
|
||||
// }
|
||||
//}
|
||||
|
||||
void GenChatTxt(string txt)
|
||||
{
|
||||
int lineCount = Regex.Matches(txt, @"\r\n|\r|\n").Count + 1;
|
||||
@ -418,7 +377,6 @@ public class ChatUI : MonoBehaviour
|
||||
wakeUpCurrentTime = 0;
|
||||
ChatAI.Instance.StopRecording();
|
||||
Thinking = false;
|
||||
//Typing = false;
|
||||
ChatAI.Instance.StopVoice();
|
||||
ChatAI.Instance.StopSend();
|
||||
audioSource.Stop();
|
||||
@ -433,6 +391,7 @@ public class ChatUI : MonoBehaviour
|
||||
{
|
||||
CloseChatTxt();
|
||||
action?.Invoke();
|
||||
action = null;
|
||||
}
|
||||
|
||||
IEnumerator WaitExecute(float t, Action callBack)
|
||||
@ -440,14 +399,4 @@ public class ChatUI : MonoBehaviour
|
||||
yield return new WaitForSeconds(t);
|
||||
callBack?.Invoke();
|
||||
}
|
||||
//IEnumerator TypeText(float totalTime, string fullText, Action<string> callBack, Action action)
|
||||
//{
|
||||
// float timePerCharacter = totalTime / fullText.Length;
|
||||
// for (int i = 0; i <= fullText.Length; i++)
|
||||
// {
|
||||
// callBack?.Invoke(fullText.Substring(0, i));
|
||||
// yield return new WaitForSeconds(timePerCharacter);
|
||||
// }
|
||||
// action?.Invoke();
|
||||
//}
|
||||
}
|
||||
|
||||
@ -2,6 +2,7 @@ using LitJson;
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Text;
|
||||
using System.Text.RegularExpressions;
|
||||
using UnityEngine;
|
||||
using UnityEngine.Networking;
|
||||
using YiLiao.Main;
|
||||
@ -79,7 +80,10 @@ public class ChatZxkAI : LLM
|
||||
Debug.Log(responseBody["choices"][0]["message"]["content"].ToString() + "\nAI-ºÄʱ" + stopwatch.Elapsed.TotalSeconds);
|
||||
assistant = responseBody["choices"][0]["message"]["content"].ToString();
|
||||
//»Øµ÷
|
||||
_callback?.Invoke(responseBody["choices"][0]["message"]["content"].ToString());
|
||||
string pattern = @"\[.*?\]|\(CITE\)";
|
||||
//执行替换,将匹配到的内容替换为空字符串
|
||||
string result = Regex.Replace(assistant, pattern, "");
|
||||
_callback?.Invoke(result);
|
||||
success = true;
|
||||
}
|
||||
else if (coroutineRunning)
|
||||
|
||||
8
Assets/Third/SensorModule.meta
Normal file
8
Assets/Third/SensorModule.meta
Normal file
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 7864ace39a799bd4aa122f6df4db29ed
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
8
Assets/Third/SensorModule/Scenes.meta
Normal file
8
Assets/Third/SensorModule/Scenes.meta
Normal file
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 3ea6e18ec019d1145ba163a8a50243a0
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
646
Assets/Third/SensorModule/Scenes/SampleScene.unity
Normal file
646
Assets/Third/SensorModule/Scenes/SampleScene.unity
Normal file
@ -0,0 +1,646 @@
|
||||
%YAML 1.1
|
||||
%TAG !u! tag:unity3d.com,2011:
|
||||
--- !u!29 &1
|
||||
OcclusionCullingSettings:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 2
|
||||
m_OcclusionBakeSettings:
|
||||
smallestOccluder: 5
|
||||
smallestHole: 0.25
|
||||
backfaceThreshold: 100
|
||||
m_SceneGUID: 00000000000000000000000000000000
|
||||
m_OcclusionCullingData: {fileID: 0}
|
||||
--- !u!104 &2
|
||||
RenderSettings:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 9
|
||||
m_Fog: 0
|
||||
m_FogColor: {r: 0.5, g: 0.5, b: 0.5, a: 1}
|
||||
m_FogMode: 3
|
||||
m_FogDensity: 0.01
|
||||
m_LinearFogStart: 0
|
||||
m_LinearFogEnd: 300
|
||||
m_AmbientSkyColor: {r: 0.212, g: 0.227, b: 0.259, a: 1}
|
||||
m_AmbientEquatorColor: {r: 0.114, g: 0.125, b: 0.133, a: 1}
|
||||
m_AmbientGroundColor: {r: 0.047, g: 0.043, b: 0.035, a: 1}
|
||||
m_AmbientIntensity: 1
|
||||
m_AmbientMode: 0
|
||||
m_SubtractiveShadowColor: {r: 0.42, g: 0.478, b: 0.627, a: 1}
|
||||
m_SkyboxMaterial: {fileID: 10304, guid: 0000000000000000f000000000000000, type: 0}
|
||||
m_HaloStrength: 0.5
|
||||
m_FlareStrength: 1
|
||||
m_FlareFadeSpeed: 3
|
||||
m_HaloTexture: {fileID: 0}
|
||||
m_SpotCookie: {fileID: 10001, guid: 0000000000000000e000000000000000, type: 0}
|
||||
m_DefaultReflectionMode: 0
|
||||
m_DefaultReflectionResolution: 128
|
||||
m_ReflectionBounces: 1
|
||||
m_ReflectionIntensity: 1
|
||||
m_CustomReflection: {fileID: 0}
|
||||
m_Sun: {fileID: 0}
|
||||
m_IndirectSpecularColor: {r: 0.12731749, g: 0.13414757, b: 0.1210787, a: 1}
|
||||
m_UseRadianceAmbientProbe: 0
|
||||
--- !u!157 &3
|
||||
LightmapSettings:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 12
|
||||
m_GIWorkflowMode: 1
|
||||
m_GISettings:
|
||||
serializedVersion: 2
|
||||
m_BounceScale: 1
|
||||
m_IndirectOutputScale: 1
|
||||
m_AlbedoBoost: 1
|
||||
m_EnvironmentLightingMode: 0
|
||||
m_EnableBakedLightmaps: 1
|
||||
m_EnableRealtimeLightmaps: 0
|
||||
m_LightmapEditorSettings:
|
||||
serializedVersion: 12
|
||||
m_Resolution: 2
|
||||
m_BakeResolution: 40
|
||||
m_AtlasSize: 1024
|
||||
m_AO: 0
|
||||
m_AOMaxDistance: 1
|
||||
m_CompAOExponent: 1
|
||||
m_CompAOExponentDirect: 0
|
||||
m_ExtractAmbientOcclusion: 0
|
||||
m_Padding: 2
|
||||
m_LightmapParameters: {fileID: 0}
|
||||
m_LightmapsBakeMode: 1
|
||||
m_TextureCompression: 1
|
||||
m_FinalGather: 0
|
||||
m_FinalGatherFiltering: 1
|
||||
m_FinalGatherRayCount: 256
|
||||
m_ReflectionCompression: 2
|
||||
m_MixedBakeMode: 2
|
||||
m_BakeBackend: 1
|
||||
m_PVRSampling: 1
|
||||
m_PVRDirectSampleCount: 32
|
||||
m_PVRSampleCount: 512
|
||||
m_PVRBounces: 2
|
||||
m_PVREnvironmentSampleCount: 256
|
||||
m_PVREnvironmentReferencePointCount: 2048
|
||||
m_PVRFilteringMode: 1
|
||||
m_PVRDenoiserTypeDirect: 1
|
||||
m_PVRDenoiserTypeIndirect: 1
|
||||
m_PVRDenoiserTypeAO: 1
|
||||
m_PVRFilterTypeDirect: 0
|
||||
m_PVRFilterTypeIndirect: 0
|
||||
m_PVRFilterTypeAO: 0
|
||||
m_PVREnvironmentMIS: 1
|
||||
m_PVRCulling: 1
|
||||
m_PVRFilteringGaussRadiusDirect: 1
|
||||
m_PVRFilteringGaussRadiusIndirect: 5
|
||||
m_PVRFilteringGaussRadiusAO: 2
|
||||
m_PVRFilteringAtrousPositionSigmaDirect: 0.5
|
||||
m_PVRFilteringAtrousPositionSigmaIndirect: 2
|
||||
m_PVRFilteringAtrousPositionSigmaAO: 1
|
||||
m_ExportTrainingData: 0
|
||||
m_TrainingDataDestination: TrainingData
|
||||
m_LightProbeSampleCountMultiplier: 4
|
||||
m_LightingDataAsset: {fileID: 0}
|
||||
m_LightingSettings: {fileID: 0}
|
||||
--- !u!196 &4
|
||||
NavMeshSettings:
|
||||
serializedVersion: 2
|
||||
m_ObjectHideFlags: 0
|
||||
m_BuildSettings:
|
||||
serializedVersion: 2
|
||||
agentTypeID: 0
|
||||
agentRadius: 0.5
|
||||
agentHeight: 2
|
||||
agentSlope: 45
|
||||
agentClimb: 0.4
|
||||
ledgeDropHeight: 0
|
||||
maxJumpAcrossDistance: 0
|
||||
minRegionArea: 2
|
||||
manualCellSize: 0
|
||||
cellSize: 0.16666667
|
||||
manualTileSize: 0
|
||||
tileSize: 256
|
||||
accuratePlacement: 0
|
||||
maxJobWorkers: 0
|
||||
preserveTilesOutsideBounds: 0
|
||||
debug:
|
||||
m_Flags: 0
|
||||
m_NavMeshData: {fileID: 0}
|
||||
--- !u!1 &71307873
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 71307876}
|
||||
- component: {fileID: 71307875}
|
||||
- component: {fileID: 71307874}
|
||||
m_Layer: 0
|
||||
m_Name: EventSystem
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!114 &71307874
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 71307873}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 4f231c4fb786f3946a6b90b886c48677, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_SendPointerHoverToParent: 1
|
||||
m_HorizontalAxis: Horizontal
|
||||
m_VerticalAxis: Vertical
|
||||
m_SubmitButton: Submit
|
||||
m_CancelButton: Cancel
|
||||
m_InputActionsPerSecond: 10
|
||||
m_RepeatDelay: 0.5
|
||||
m_ForceModuleActive: 0
|
||||
--- !u!114 &71307875
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 71307873}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 76c392e42b5098c458856cdf6ecaaaa1, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_FirstSelected: {fileID: 0}
|
||||
m_sendNavigationEvents: 1
|
||||
m_DragThreshold: 10
|
||||
--- !u!4 &71307876
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 71307873}
|
||||
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: 0}
|
||||
m_RootOrder: 1
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!1 &330585543
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 330585546}
|
||||
- component: {fileID: 330585545}
|
||||
- component: {fileID: 330585544}
|
||||
- component: {fileID: 330585547}
|
||||
m_Layer: 0
|
||||
m_Name: Main Camera
|
||||
m_TagString: MainCamera
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!81 &330585544
|
||||
AudioListener:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 330585543}
|
||||
m_Enabled: 1
|
||||
--- !u!20 &330585545
|
||||
Camera:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 330585543}
|
||||
m_Enabled: 1
|
||||
serializedVersion: 2
|
||||
m_ClearFlags: 1
|
||||
m_BackGroundColor: {r: 0.19215687, g: 0.3019608, b: 0.4745098, a: 0}
|
||||
m_projectionMatrixMode: 1
|
||||
m_GateFitMode: 2
|
||||
m_FOVAxisMode: 0
|
||||
m_SensorSize: {x: 36, y: 24}
|
||||
m_LensShift: {x: 0, y: 0}
|
||||
m_FocalLength: 50
|
||||
m_NormalizedViewPortRect:
|
||||
serializedVersion: 2
|
||||
x: 0
|
||||
y: 0
|
||||
width: 1
|
||||
height: 1
|
||||
near clip plane: 0.3
|
||||
far clip plane: 1000
|
||||
field of view: 60
|
||||
orthographic: 0
|
||||
orthographic size: 5
|
||||
m_Depth: -1
|
||||
m_CullingMask:
|
||||
serializedVersion: 2
|
||||
m_Bits: 4294967295
|
||||
m_RenderingPath: -1
|
||||
m_TargetTexture: {fileID: 0}
|
||||
m_TargetDisplay: 0
|
||||
m_TargetEye: 3
|
||||
m_HDR: 1
|
||||
m_AllowMSAA: 1
|
||||
m_AllowDynamicResolution: 0
|
||||
m_ForceIntoRT: 0
|
||||
m_OcclusionCulling: 1
|
||||
m_StereoConvergence: 10
|
||||
m_StereoSeparation: 0.022
|
||||
--- !u!4 &330585546
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 330585543}
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 0, y: 1, z: -10}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
m_RootOrder: 0
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!114 &330585547
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 330585543}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: a79441f348de89743a2939f4d699eac1, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
m_RenderShadows: 1
|
||||
m_RequiresDepthTextureOption: 2
|
||||
m_RequiresOpaqueTextureOption: 2
|
||||
m_CameraType: 0
|
||||
m_Cameras: []
|
||||
m_RendererIndex: -1
|
||||
m_VolumeLayerMask:
|
||||
serializedVersion: 2
|
||||
m_Bits: 1
|
||||
m_VolumeTrigger: {fileID: 0}
|
||||
m_VolumeFrameworkUpdateModeOption: 2
|
||||
m_RenderPostProcessing: 1
|
||||
m_Antialiasing: 0
|
||||
m_AntialiasingQuality: 2
|
||||
m_StopNaN: 0
|
||||
m_Dithering: 0
|
||||
m_ClearDepth: 1
|
||||
m_AllowXRRendering: 1
|
||||
m_RequiresDepthTexture: 0
|
||||
m_RequiresColorTexture: 0
|
||||
m_Version: 2
|
||||
--- !u!1 &330895702 stripped
|
||||
GameObject:
|
||||
m_CorrespondingSourceObject: {fileID: 2354870448391347380, guid: 1a1201bb09fe35a4ba7a1d787be0c122,
|
||||
type: 3}
|
||||
m_PrefabInstance: {fileID: 2354870448281023138}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
--- !u!1 &878783925
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 11
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 878783927}
|
||||
- component: {fileID: 878783926}
|
||||
m_Layer: 0
|
||||
m_Name: Prefab Indexer
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!114 &878783926
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 11
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 878783925}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 05a7c62fccbafd342991629222351294, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier:
|
||||
_scenePrefabInstances:
|
||||
- _gameObject: {fileID: 330895702}
|
||||
_prefab: Assets/SensorModule/SensorConsole.prefab
|
||||
--- !u!4 &878783927
|
||||
Transform:
|
||||
m_ObjectHideFlags: 11
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 878783925}
|
||||
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: 0}
|
||||
m_RootOrder: 3
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!1001 &2354870448281023138
|
||||
PrefabInstance:
|
||||
m_ObjectHideFlags: 0
|
||||
serializedVersion: 2
|
||||
m_Modification:
|
||||
m_TransformParent: {fileID: 0}
|
||||
m_Modifications:
|
||||
- target: {fileID: 1538575156, guid: 1a1201bb09fe35a4ba7a1d787be0c122, type: 3}
|
||||
propertyPath: m_AnchorMax.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 1538575156, guid: 1a1201bb09fe35a4ba7a1d787be0c122, type: 3}
|
||||
propertyPath: m_AnchorMin.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 1538575156, guid: 1a1201bb09fe35a4ba7a1d787be0c122, type: 3}
|
||||
propertyPath: m_SizeDelta.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 1538575156, guid: 1a1201bb09fe35a4ba7a1d787be0c122, type: 3}
|
||||
propertyPath: m_AnchoredPosition.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 1538575156, guid: 1a1201bb09fe35a4ba7a1d787be0c122, type: 3}
|
||||
propertyPath: m_AnchoredPosition.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 1551160554, guid: 1a1201bb09fe35a4ba7a1d787be0c122, type: 3}
|
||||
propertyPath: m_IsActive
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 1551160555, guid: 1a1201bb09fe35a4ba7a1d787be0c122, type: 3}
|
||||
propertyPath: m_AnchorMax.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 1551160555, guid: 1a1201bb09fe35a4ba7a1d787be0c122, type: 3}
|
||||
propertyPath: m_AnchorMin.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 1551160555, guid: 1a1201bb09fe35a4ba7a1d787be0c122, type: 3}
|
||||
propertyPath: m_SizeDelta.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 1551160555, guid: 1a1201bb09fe35a4ba7a1d787be0c122, type: 3}
|
||||
propertyPath: m_SizeDelta.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 1551160555, guid: 1a1201bb09fe35a4ba7a1d787be0c122, type: 3}
|
||||
propertyPath: m_AnchoredPosition.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 1551160555, guid: 1a1201bb09fe35a4ba7a1d787be0c122, type: 3}
|
||||
propertyPath: m_AnchoredPosition.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2131783165, guid: 1a1201bb09fe35a4ba7a1d787be0c122, type: 3}
|
||||
propertyPath: m_AnchorMax.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2131783165, guid: 1a1201bb09fe35a4ba7a1d787be0c122, type: 3}
|
||||
propertyPath: m_AnchorMin.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2131783165, guid: 1a1201bb09fe35a4ba7a1d787be0c122, type: 3}
|
||||
propertyPath: m_SizeDelta.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2131783165, guid: 1a1201bb09fe35a4ba7a1d787be0c122, type: 3}
|
||||
propertyPath: m_AnchoredPosition.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2131783165, guid: 1a1201bb09fe35a4ba7a1d787be0c122, type: 3}
|
||||
propertyPath: m_AnchoredPosition.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2354870447667348738, guid: 1a1201bb09fe35a4ba7a1d787be0c122,
|
||||
type: 3}
|
||||
propertyPath: m_AnchorMax.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2354870447667348738, guid: 1a1201bb09fe35a4ba7a1d787be0c122,
|
||||
type: 3}
|
||||
propertyPath: m_AnchorMin.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2354870447667348738, guid: 1a1201bb09fe35a4ba7a1d787be0c122,
|
||||
type: 3}
|
||||
propertyPath: m_SizeDelta.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2354870447667348738, guid: 1a1201bb09fe35a4ba7a1d787be0c122,
|
||||
type: 3}
|
||||
propertyPath: m_SizeDelta.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2354870447667348738, guid: 1a1201bb09fe35a4ba7a1d787be0c122,
|
||||
type: 3}
|
||||
propertyPath: m_AnchoredPosition.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2354870447667348738, guid: 1a1201bb09fe35a4ba7a1d787be0c122,
|
||||
type: 3}
|
||||
propertyPath: m_AnchoredPosition.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2354870447667348797, guid: 1a1201bb09fe35a4ba7a1d787be0c122,
|
||||
type: 3}
|
||||
propertyPath: m_IsActive
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2354870447797163002, guid: 1a1201bb09fe35a4ba7a1d787be0c122,
|
||||
type: 3}
|
||||
propertyPath: m_AnchorMax.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2354870447797163002, guid: 1a1201bb09fe35a4ba7a1d787be0c122,
|
||||
type: 3}
|
||||
propertyPath: m_AnchorMin.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2354870447797163002, guid: 1a1201bb09fe35a4ba7a1d787be0c122,
|
||||
type: 3}
|
||||
propertyPath: m_SizeDelta.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2354870447797163002, guid: 1a1201bb09fe35a4ba7a1d787be0c122,
|
||||
type: 3}
|
||||
propertyPath: m_AnchoredPosition.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2354870447797163002, guid: 1a1201bb09fe35a4ba7a1d787be0c122,
|
||||
type: 3}
|
||||
propertyPath: m_AnchoredPosition.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2354870447873841641, guid: 1a1201bb09fe35a4ba7a1d787be0c122,
|
||||
type: 3}
|
||||
propertyPath: m_AnchorMax.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2354870447873841641, guid: 1a1201bb09fe35a4ba7a1d787be0c122,
|
||||
type: 3}
|
||||
propertyPath: m_AnchorMin.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2354870447873841641, guid: 1a1201bb09fe35a4ba7a1d787be0c122,
|
||||
type: 3}
|
||||
propertyPath: m_SizeDelta.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2354870447873841641, guid: 1a1201bb09fe35a4ba7a1d787be0c122,
|
||||
type: 3}
|
||||
propertyPath: m_AnchoredPosition.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2354870447873841641, guid: 1a1201bb09fe35a4ba7a1d787be0c122,
|
||||
type: 3}
|
||||
propertyPath: m_AnchoredPosition.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2354870448391347380, guid: 1a1201bb09fe35a4ba7a1d787be0c122,
|
||||
type: 3}
|
||||
propertyPath: m_Name
|
||||
value: SensorConsole
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2354870448391347381, guid: 1a1201bb09fe35a4ba7a1d787be0c122,
|
||||
type: 3}
|
||||
propertyPath: m_RootOrder
|
||||
value: 2
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2354870448391347381, guid: 1a1201bb09fe35a4ba7a1d787be0c122,
|
||||
type: 3}
|
||||
propertyPath: m_LocalPosition.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2354870448391347381, guid: 1a1201bb09fe35a4ba7a1d787be0c122,
|
||||
type: 3}
|
||||
propertyPath: m_LocalPosition.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2354870448391347381, guid: 1a1201bb09fe35a4ba7a1d787be0c122,
|
||||
type: 3}
|
||||
propertyPath: m_LocalPosition.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2354870448391347381, guid: 1a1201bb09fe35a4ba7a1d787be0c122,
|
||||
type: 3}
|
||||
propertyPath: m_LocalRotation.w
|
||||
value: 1
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2354870448391347381, guid: 1a1201bb09fe35a4ba7a1d787be0c122,
|
||||
type: 3}
|
||||
propertyPath: m_LocalRotation.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2354870448391347381, guid: 1a1201bb09fe35a4ba7a1d787be0c122,
|
||||
type: 3}
|
||||
propertyPath: m_LocalRotation.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2354870448391347381, guid: 1a1201bb09fe35a4ba7a1d787be0c122,
|
||||
type: 3}
|
||||
propertyPath: m_LocalRotation.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2354870448391347381, guid: 1a1201bb09fe35a4ba7a1d787be0c122,
|
||||
type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2354870448391347381, guid: 1a1201bb09fe35a4ba7a1d787be0c122,
|
||||
type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2354870448391347381, guid: 1a1201bb09fe35a4ba7a1d787be0c122,
|
||||
type: 3}
|
||||
propertyPath: m_LocalEulerAnglesHint.z
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2354870448391347386, guid: 1a1201bb09fe35a4ba7a1d787be0c122,
|
||||
type: 3}
|
||||
propertyPath: dataType
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2354870448391347386, guid: 1a1201bb09fe35a4ba7a1d787be0c122,
|
||||
type: 3}
|
||||
propertyPath: portName
|
||||
value: COM3
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2354870449063151044, guid: 1a1201bb09fe35a4ba7a1d787be0c122,
|
||||
type: 3}
|
||||
propertyPath: m_AnchorMax.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2354870449063151044, guid: 1a1201bb09fe35a4ba7a1d787be0c122,
|
||||
type: 3}
|
||||
propertyPath: m_AnchorMin.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2354870449063151044, guid: 1a1201bb09fe35a4ba7a1d787be0c122,
|
||||
type: 3}
|
||||
propertyPath: m_SizeDelta.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2354870449063151044, guid: 1a1201bb09fe35a4ba7a1d787be0c122,
|
||||
type: 3}
|
||||
propertyPath: m_AnchoredPosition.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2354870449063151044, guid: 1a1201bb09fe35a4ba7a1d787be0c122,
|
||||
type: 3}
|
||||
propertyPath: m_AnchoredPosition.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2354870449216273281, guid: 1a1201bb09fe35a4ba7a1d787be0c122,
|
||||
type: 3}
|
||||
propertyPath: m_AnchorMax.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2354870449216273281, guid: 1a1201bb09fe35a4ba7a1d787be0c122,
|
||||
type: 3}
|
||||
propertyPath: m_AnchorMin.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2354870449216273281, guid: 1a1201bb09fe35a4ba7a1d787be0c122,
|
||||
type: 3}
|
||||
propertyPath: m_SizeDelta.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2354870449216273281, guid: 1a1201bb09fe35a4ba7a1d787be0c122,
|
||||
type: 3}
|
||||
propertyPath: m_AnchoredPosition.x
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
- target: {fileID: 2354870449216273281, guid: 1a1201bb09fe35a4ba7a1d787be0c122,
|
||||
type: 3}
|
||||
propertyPath: m_AnchoredPosition.y
|
||||
value: 0
|
||||
objectReference: {fileID: 0}
|
||||
m_RemovedComponents: []
|
||||
m_SourcePrefab: {fileID: 100100000, guid: 1a1201bb09fe35a4ba7a1d787be0c122, type: 3}
|
||||
7
Assets/Third/SensorModule/Scenes/SampleScene.unity.meta
Normal file
7
Assets/Third/SensorModule/Scenes/SampleScene.unity.meta
Normal file
@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 7aa75609ef342f84288ea7ec5a82a345
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
8
Assets/Third/SensorModule/Scripts.meta
Normal file
8
Assets/Third/SensorModule/Scripts.meta
Normal file
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 241b85daacaad9c4ba0c421dd706f7af
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
8
Assets/Third/SensorModule/Scripts/Common.meta
Normal file
8
Assets/Third/SensorModule/Scripts/Common.meta
Normal file
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 23cd81b4a2fb0584489fc0f58b41cd58
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
136
Assets/Third/SensorModule/Scripts/Common/CommonTools.cs
Normal file
136
Assets/Third/SensorModule/Scripts/Common/CommonTools.cs
Normal file
@ -0,0 +1,136 @@
|
||||
using System;
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
/// <summary>
|
||||
/// 通用工具
|
||||
/// </summary>
|
||||
public class CommonTools
|
||||
{
|
||||
/// <summary>
|
||||
/// 获取角度
|
||||
/// </summary>.
|
||||
/// <returns></returns>
|
||||
public static float GetDu(string data1, string data2)
|
||||
{
|
||||
float loData = (Convert.ToInt32(data1, 16) << 8 | Convert.ToInt32(data2, 16)) / 100f;
|
||||
if (loData > 360)
|
||||
{
|
||||
loData = 360 - (Convert.ToInt32("0xffff", 16) - (Convert.ToInt32(data1, 16) << 8 | Convert.ToInt32(data2, 16))) / 100f;
|
||||
}
|
||||
return loData;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取数据
|
||||
/// </summary>
|
||||
/// <param name="data1"></param>
|
||||
/// <param name="data2"></param>
|
||||
/// <returns></returns>
|
||||
public static float GetShuJu(string data1, string data2)
|
||||
{
|
||||
return Convert.ToInt32(data1, 16) * 256 + Convert.ToInt32(data2, 16);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// 获取角度
|
||||
/// </summary>
|
||||
public static Quaternion GetEuler(float pitch, float yaw, float roll)
|
||||
{
|
||||
Vector3 eulerAngles2 = new(pitch, yaw, roll);
|
||||
return Quaternion.Euler(eulerAngles2);
|
||||
}
|
||||
#region 16进制转换相关
|
||||
/// <summary>
|
||||
/// 字节数组转16进制字符串
|
||||
/// </summary>
|
||||
public static string byteToHexStr(byte[] bytes)
|
||||
{
|
||||
string returnStr = "";
|
||||
if (bytes != null)
|
||||
{
|
||||
for (int i = 0; i < bytes.Length; i++)
|
||||
{
|
||||
returnStr += bytes[i].ToString("X2");
|
||||
returnStr += "-";
|
||||
}
|
||||
}
|
||||
return returnStr;
|
||||
}
|
||||
/// <summary>
|
||||
/// 字符串转16进制
|
||||
/// </summary>
|
||||
/// <param name="input">要转格式的字符串</param>
|
||||
/// <returns>转化为16进制的字符串</returns>
|
||||
private static string ToSixteen(string input)
|
||||
{
|
||||
char[] values = input.ToCharArray();
|
||||
string end = string.Empty;
|
||||
foreach (char letter in values)
|
||||
{
|
||||
int value = Convert.ToInt32(letter);
|
||||
string hexoutput = string.Format("{0:X}", value); //0 表示占位符 x或X表示十六进制
|
||||
end += hexoutput + "_";
|
||||
}
|
||||
end = end.Remove(end.Length - 1);
|
||||
return end;
|
||||
}
|
||||
/// <summary>
|
||||
/// 16进制转回字符串
|
||||
/// </summary>
|
||||
/// <param name="input">16进制</param>
|
||||
/// <returns>转回的字符串</returns>
|
||||
private static string ToMyString(string input)
|
||||
{
|
||||
string[] hexvaluesplit = input.Split('_');
|
||||
string end = string.Empty;
|
||||
foreach (string hex in hexvaluesplit)
|
||||
{
|
||||
int value = Convert.ToInt32(hex, 16);
|
||||
string stringvalue = char.ConvertFromUtf32(value);
|
||||
char charValue = (char)value;
|
||||
end += charValue;
|
||||
}
|
||||
return end;
|
||||
}
|
||||
/// <summary>
|
||||
/// 字符串转字节流
|
||||
/// </summary>
|
||||
/// <param name="hexStr"></param>
|
||||
/// <returns></returns>
|
||||
public static byte[] HexStringToBytes(string hexStr)
|
||||
{
|
||||
if (string.IsNullOrEmpty(hexStr))
|
||||
{
|
||||
return new byte[0];
|
||||
}
|
||||
if (hexStr.StartsWith("0x"))
|
||||
{
|
||||
hexStr = hexStr.Remove(0, 2);
|
||||
}
|
||||
var count = hexStr.Length;
|
||||
var byteCount = count / 2;
|
||||
var result = new byte[byteCount];
|
||||
for (int ii = 0; ii < byteCount; ++ii)
|
||||
{
|
||||
var tempBytes = Byte.Parse(hexStr.Substring(2 * ii, 2), System.Globalization.NumberStyles.HexNumber);
|
||||
result[ii] = tempBytes;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
/// <summary>
|
||||
/// 字符串转字节流 -- 推荐用法
|
||||
/// </summary>
|
||||
public static byte[] Convert16(string strText)
|
||||
{
|
||||
strText = strText.Replace(" ", "");
|
||||
byte[] bText = new byte[strText.Length / 2];
|
||||
for (int i = 0; i < strText.Length / 2; i++)
|
||||
{
|
||||
bText[i] = Convert.ToByte(Convert.ToInt32(strText.Substring(i * 2, 2), 16));
|
||||
}
|
||||
return bText;
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
11
Assets/Third/SensorModule/Scripts/Common/CommonTools.cs.meta
Normal file
11
Assets/Third/SensorModule/Scripts/Common/CommonTools.cs.meta
Normal file
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: d0ec13398055c23489b7a6ecb8f465d2
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -1,5 +1,5 @@
|
||||
fileFormatVersion: 2
|
||||
guid: aef1f434c36132843b501d927325b9db
|
||||
guid: 3b61bc20132f23645a7b65212502dfdb
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
8
Assets/Third/SensorModule/Scripts/Sensor.meta
Normal file
8
Assets/Third/SensorModule/Scripts/Sensor.meta
Normal file
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 5a6238098e030c84fad1cc5546bd27db
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
8
Assets/Third/SensorModule/Scripts/Sensor/Base.meta
Normal file
8
Assets/Third/SensorModule/Scripts/Sensor/Base.meta
Normal file
@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 2eccb318e4dfaf5449eff90d3387cb45
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
28
Assets/Third/SensorModule/Scripts/Sensor/Base/Sensor.cs
Normal file
28
Assets/Third/SensorModule/Scripts/Sensor/Base/Sensor.cs
Normal file
@ -0,0 +1,28 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
/// <summary>
|
||||
/// ´«¸ÐÆ÷»ùÀà
|
||||
/// </summary>
|
||||
public abstract class Sensor : MonoBehaviour
|
||||
{
|
||||
SensorManager sensorManager;
|
||||
public void Init(SensorManager sm)
|
||||
{
|
||||
sensorManager = sm;
|
||||
}
|
||||
public void SendData(string data)
|
||||
{
|
||||
sensorManager.SendFunction(data);
|
||||
}
|
||||
public virtual void ReceiveData(string datas)
|
||||
{
|
||||
if (!gameObject.activeSelf) return;
|
||||
Display(datas);
|
||||
}
|
||||
|
||||
public virtual void Display(string datas)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
11
Assets/Third/SensorModule/Scripts/Sensor/Base/Sensor.cs.meta
Normal file
11
Assets/Third/SensorModule/Scripts/Sensor/Base/Sensor.cs.meta
Normal file
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 1241e5cf7985ea145a27ee4429841c9c
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
23
Assets/Third/SensorModule/Scripts/Sensor/TZQ_Sensor.cs
Normal file
23
Assets/Third/SensorModule/Scripts/Sensor/TZQ_Sensor.cs
Normal file
@ -0,0 +1,23 @@
|
||||
using System.Text.RegularExpressions;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
|
||||
public class TZQ_Sensor : Sensor
|
||||
{
|
||||
[SerializeField]
|
||||
Text txt;
|
||||
public int positionValue = 0;
|
||||
public override void ReceiveData(string datas)
|
||||
{
|
||||
base.ReceiveData(datas);
|
||||
Regex regex = new Regex(@"Position:(\d+)");
|
||||
Match match = regex.Match(datas);
|
||||
if (match.Success)
|
||||
{
|
||||
if (int.TryParse(match.Groups[1].Value, out positionValue))
|
||||
{
|
||||
txt.text = "µãλ:" + positionValue;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
11
Assets/Third/SensorModule/Scripts/Sensor/TZQ_Sensor.cs.meta
Normal file
11
Assets/Third/SensorModule/Scripts/Sensor/TZQ_Sensor.cs.meta
Normal file
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: e627f0e138af13f4f8c6d70f737a53b1
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
25
Assets/Third/SensorModule/Scripts/Sensor/ZXKWakeup.cs
Normal file
25
Assets/Third/SensorModule/Scripts/Sensor/ZXKWakeup.cs
Normal file
@ -0,0 +1,25 @@
|
||||
using NAudio.Wave;
|
||||
using System;
|
||||
using System.IO;
|
||||
using System.IO.Ports;
|
||||
using System.Linq;
|
||||
using System.Runtime.InteropServices;
|
||||
using System.Text;
|
||||
using System.Text.RegularExpressions;
|
||||
using System.Threading;
|
||||
/// <summary>
|
||||
/// 语音工具
|
||||
/// </summary>
|
||||
public class ZXKWakeup : Sensor
|
||||
{
|
||||
//唤醒词:小智小智
|
||||
public Action callBack;//唤醒回调
|
||||
public override void ReceiveData(string datas)
|
||||
{
|
||||
base.ReceiveData(datas);
|
||||
if (datas.TrimEnd('\n', '\r') == "hello")
|
||||
{
|
||||
callBack?.Invoke();
|
||||
}
|
||||
}
|
||||
}
|
||||
11
Assets/Third/SensorModule/Scripts/Sensor/ZXKWakeup.cs.meta
Normal file
11
Assets/Third/SensorModule/Scripts/Sensor/ZXKWakeup.cs.meta
Normal file
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: f7013546bf23b2c4580056d9fa6164db
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
228
Assets/Third/SensorModule/Scripts/SensorManager.cs
Normal file
228
Assets/Third/SensorModule/Scripts/SensorManager.cs
Normal file
@ -0,0 +1,228 @@
|
||||
using System;
|
||||
using System.Collections.Concurrent;
|
||||
using System.Collections.Generic;
|
||||
using System.Data.SqlTypes;
|
||||
using System.IO.Ports;
|
||||
using System.Text;
|
||||
using System.Threading;
|
||||
//using UnityEditor.PackageManager.UI;
|
||||
using UnityEngine;
|
||||
using UnityThreadingUtils;
|
||||
using ZXKFramework;
|
||||
|
||||
public class SensorManager : MonoBehaviour /*MonoSingleton<SensorManager>*/
|
||||
{
|
||||
public enum DataType
|
||||
{
|
||||
字符串,
|
||||
字节流,
|
||||
}
|
||||
#region 串口参数,主要修改串口名与波特率
|
||||
[Header("串口名")]
|
||||
public string portName = "COM10";
|
||||
[Header("波特率")]
|
||||
public int baudRate = 115200;
|
||||
[Header("奇偶校验")]
|
||||
private Parity parity = Parity.None;
|
||||
[Header("数据位")]
|
||||
private int dataBits = 8;
|
||||
[Header("停止位")]
|
||||
private StopBits stopBits = StopBits.One;
|
||||
SerialPort sp = null;
|
||||
Thread dataReceiveThread;
|
||||
[Header("接收数据格式")]
|
||||
public DataType dataType;
|
||||
#endregion
|
||||
private Dictionary<string, Sensor> allSensor = new Dictionary<string, Sensor>();
|
||||
StringBuilder sb = new StringBuilder();
|
||||
public GameObject sensorView;
|
||||
private void Start()
|
||||
{
|
||||
sp = new SerialPort(portName, baudRate, parity, dataBits, stopBits);
|
||||
foreach (Sensor s in GetComponentsInChildren<Sensor>())
|
||||
{
|
||||
allSensor.TryAdd(s.GetType().Name, s);
|
||||
}
|
||||
switch (dataType)
|
||||
{
|
||||
case DataType.字节流:
|
||||
dataReceiveThread = new Thread(new ThreadStart(DataReceiveBytesThread));
|
||||
break;
|
||||
case DataType.字符串:
|
||||
dataReceiveThread = new Thread(new ThreadStart(DataReceiveStrThread));
|
||||
break;
|
||||
}
|
||||
OpenPort();
|
||||
}
|
||||
/// <summary>
|
||||
/// 接收字节流
|
||||
/// </summary>
|
||||
private void DataReceiveBytesThread()
|
||||
{
|
||||
while (true)
|
||||
{
|
||||
if (sp != null && sp.IsOpen)
|
||||
{
|
||||
try
|
||||
{
|
||||
if (sp.BytesToRead > 0)
|
||||
{
|
||||
byte[] buffer = new byte[sp.BytesToRead];
|
||||
sp.Read(buffer, 0, sp.BytesToRead);
|
||||
string receivedData = Encoding.Default.GetString(buffer);
|
||||
//Debug.Log(receivedData);
|
||||
UnityMainThreadDispatcher.Instance().Enqueue(() =>
|
||||
{
|
||||
foreach (var s in allSensor)
|
||||
{
|
||||
s.Value.ReceiveData(receivedData);
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
Debug.Log("消息接收失败");
|
||||
}
|
||||
}
|
||||
Thread.Sleep(20);
|
||||
}
|
||||
}
|
||||
private void Update()
|
||||
{
|
||||
if (Input.GetKeyDown(KeyCode.Space))
|
||||
{
|
||||
if (sensorView.activeSelf)
|
||||
{
|
||||
sensorView.SetActive(false);
|
||||
}
|
||||
else
|
||||
{
|
||||
sensorView.SetActive(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 接收字符串
|
||||
/// </summary>
|
||||
private void DataReceiveStrThread()
|
||||
{
|
||||
while (true)
|
||||
{
|
||||
if (sp != null && sp.IsOpen)
|
||||
{
|
||||
try
|
||||
{
|
||||
if (sp.BytesToRead > 0)
|
||||
{
|
||||
sb.Append(sp.ReadExisting());
|
||||
//this.ColorLog(GDLog.LogColorState.Blue, sp.ReadLine());
|
||||
UnityMainThreadDispatcher.Instance().Enqueue(() =>
|
||||
{
|
||||
foreach (var s in allSensor)
|
||||
{
|
||||
s.Value.ReceiveData(sb.ToString());
|
||||
}
|
||||
sb.Clear();
|
||||
});
|
||||
}
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
Debug.Log("消息接收失败");
|
||||
}
|
||||
}
|
||||
Thread.Sleep(20);
|
||||
}
|
||||
}
|
||||
/// <summary>
|
||||
/// 发送消息
|
||||
/// </summary>
|
||||
/// <param name="dataSend"></param>
|
||||
public void SendFunction(string str)
|
||||
{
|
||||
try
|
||||
{
|
||||
byte[] dataSend = Encoding.ASCII.GetBytes(str);
|
||||
if (sp != null && sp.IsOpen)
|
||||
{
|
||||
if (dataSend != null && dataSend.Length > 0)
|
||||
{
|
||||
sp.Write(dataSend, 0, dataSend.Length);
|
||||
Debug.Log("发送消息成功:" + str);
|
||||
}
|
||||
}
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
Debug.Log("发送消息失败:" + str);
|
||||
}
|
||||
}
|
||||
//获取指定传感器
|
||||
public T GetSensor<T>() where T : Sensor
|
||||
{
|
||||
try
|
||||
{
|
||||
string name = typeof(T).Name;
|
||||
if (!allSensor.ContainsKey(name))
|
||||
{
|
||||
allSensor.TryAdd(name, GetComponentInChildren<T>());
|
||||
allSensor[name].Init(this);
|
||||
}
|
||||
//Debug.Log("传感器获取成功");
|
||||
return allSensor[name] as T;
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
Debug.Log("传感器获取失败");
|
||||
return null;
|
||||
}
|
||||
}
|
||||
#region 串口开启关闭相关
|
||||
//打开串口
|
||||
public void OpenPort()
|
||||
{
|
||||
try
|
||||
{
|
||||
if (!sp.IsOpen)
|
||||
{
|
||||
sp.Open();
|
||||
dataReceiveThread.Start();
|
||||
Debug.Log("串口打开成功");
|
||||
}
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
Debug.Log("串口打开失败");
|
||||
}
|
||||
}
|
||||
|
||||
//关闭串口
|
||||
public void ClosePort()
|
||||
{
|
||||
try
|
||||
{
|
||||
sp.Close();
|
||||
sp = null;
|
||||
dataReceiveThread.Abort();
|
||||
Debug.Log("串口关闭");
|
||||
}
|
||||
catch (Exception)
|
||||
{
|
||||
Debug.Log("串口关闭失败");
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
|
||||
#region Unity 退出相关
|
||||
private void OnApplicationQuit()
|
||||
{
|
||||
ClosePort();
|
||||
}
|
||||
private void OnDisable()
|
||||
{
|
||||
this.Log("为什么关闭了:" + gameObject.name);
|
||||
ClosePort();
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
11
Assets/Third/SensorModule/Scripts/SensorManager.cs.meta
Normal file
11
Assets/Third/SensorModule/Scripts/SensorManager.cs.meta
Normal file
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 6c58763dd2491d94c882310d382a6dfc
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
2387
Assets/Third/SensorModule/SensorConsole.prefab
Normal file
2387
Assets/Third/SensorModule/SensorConsole.prefab
Normal file
File diff suppressed because it is too large
Load Diff
7
Assets/Third/SensorModule/SensorConsole.prefab.meta
Normal file
7
Assets/Third/SensorModule/SensorConsole.prefab.meta
Normal file
@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 1a1201bb09fe35a4ba7a1d787be0c122
|
||||
PrefabImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
File diff suppressed because it is too large
Load Diff
@ -1,9 +1,18 @@
|
||||
using FSM;
|
||||
using UnityEngine;
|
||||
using ZXKFramework;
|
||||
namespace YiLiao.XinFeiTingZhen
|
||||
{
|
||||
public class BenMaLvState : FsmState<FSMManager>
|
||||
{
|
||||
bool step;
|
||||
string PositionValue
|
||||
{
|
||||
get
|
||||
{
|
||||
return GameManager.Instance.sensorManager.GetSensor<TZQ_Sensor>().positionValue.ToString();
|
||||
}
|
||||
}
|
||||
public override void OnStateEnter()
|
||||
{
|
||||
base.OnStateEnter();
|
||||
@ -11,25 +20,48 @@ namespace YiLiao.XinFeiTingZhen
|
||||
fsm.PlayBgm(0);
|
||||
fsm.PlayClip("±¼ÂíÂÉ");
|
||||
fsm.Light_EnableInteraction("group22");
|
||||
fsm.InteractionDown("group22", obj => {
|
||||
fsm.StopBgm();
|
||||
fsm.Unlight_DisableInteraction("group22");
|
||||
fsm.InteractionDown("group22", null);
|
||||
Game.Instance.eventManager.Raise(new PlayTrueOrFalseEvent() { isTrue = true });
|
||||
fsm.PlayClip("奔马律2");
|
||||
ChatUI.Instance.SendAI("心脏听诊》病理性心音》奔马律", null);
|
||||
fsm.ShowNextPanel(() => {
|
||||
ChatUI.Instance.CloseChatTxt();
|
||||
fsm.StopClip("奔马律2");
|
||||
fsm.nextState = true;
|
||||
});
|
||||
});
|
||||
step = true;
|
||||
GameManager.Instance.sensorManager.SendFunction("#ID:5;SONG:10;%");
|
||||
//fsm.InteractionDown("group22", obj => {
|
||||
// fsm.StopBgm();
|
||||
// fsm.Unlight_DisableInteraction("group22");
|
||||
// fsm.InteractionDown("group22", null);
|
||||
// Game.Instance.eventManager.Raise(new PlayTrueOrFalseEvent() { isTrue = true });
|
||||
// fsm.PlayClip("奔马律2");
|
||||
// ChatUI.Instance.SendAI("心脏听诊》病理性心音》奔马律", null);
|
||||
// fsm.ShowNextPanel(() => {
|
||||
// ChatUI.Instance.CloseChatTxt();
|
||||
// fsm.StopClip("奔马律2");
|
||||
// fsm.nextState = true;
|
||||
// });
|
||||
//});
|
||||
}
|
||||
public override void OnStateStay()
|
||||
{
|
||||
base.OnStateStay();
|
||||
if (PositionValue == "5" || Input.GetKeyDown(KeyCode.L))
|
||||
{
|
||||
if (step)
|
||||
{
|
||||
step = false;
|
||||
fsm.StopBgm();
|
||||
fsm.Unlight_DisableInteraction("group22");
|
||||
//fsm.InteractionDown("group22", null);
|
||||
Game.Instance.eventManager.Raise(new PlayTrueOrFalseEvent() { isTrue = true });
|
||||
fsm.PlayClip("奔马律_听诊器");
|
||||
ChatUI.Instance.SendAI("心脏听诊》病理性心音》奔马律", null);
|
||||
fsm.ShowNextPanel(() => {
|
||||
ChatUI.Instance.CloseChatTxt();
|
||||
fsm.nextState = true;
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public override void OnStateExit()
|
||||
{
|
||||
base.OnStateExit();
|
||||
fsm.StopClip("奔马律2");
|
||||
step = false;
|
||||
fsm.StopClip("奔马律_听诊器");
|
||||
fsm.nextState = false;
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,40 +1,72 @@
|
||||
using FSM;
|
||||
using UnityEngine;
|
||||
using ZXKFramework;
|
||||
namespace YiLiao.XinFeiTingZhen
|
||||
{
|
||||
public class DiYiDiErXinYinJianRuoState : FsmState<FSMManager>
|
||||
{
|
||||
bool step;
|
||||
string PositionValue
|
||||
{
|
||||
get
|
||||
{
|
||||
return GameManager.Instance.sensorManager.GetSensor<TZQ_Sensor>().positionValue.ToString();
|
||||
}
|
||||
}
|
||||
public override void OnStateEnter()
|
||||
{
|
||||
base.OnStateEnter();
|
||||
fsm.ShowTip(0);
|
||||
fsm.PlayBgm(0);
|
||||
step = true;
|
||||
GameManager.Instance.sensorManager.SendFunction("#ID:5;SONG:6;%");
|
||||
fsm.PlayClip("µÚÒ»µÚ¶þÐÄÒô¼õÈõ");
|
||||
fsm.Light_EnableInteraction("group22");
|
||||
fsm.InteractionDown("group22", obj => {
|
||||
fsm.StopBgm();
|
||||
fsm.Unlight_DisableInteraction("group22");
|
||||
fsm.InteractionDown("group22", null);
|
||||
Game.Instance.eventManager.Raise(new PlayTrueOrFalseEvent() { isTrue = true });
|
||||
fsm.PlayClip("第一第二心音减弱2");
|
||||
ChatUI.Instance.SendAI("心脏听诊》病理性心音》第一/第二心音减弱》步骤1", null);
|
||||
fsm.ShowNextPanel(() => {
|
||||
ChatUI.Instance.CloseChatTxt();
|
||||
fsm.StopClip("第一第二心音减弱2");
|
||||
fsm.ShowTxtQuestion("心脏听诊》病理性心音》第一/第二心音减弱》步骤2", 5, 0, 0, () => {
|
||||
fsm.nextState = true;
|
||||
});
|
||||
});
|
||||
});
|
||||
//fsm.InteractionDown("group22", obj => {
|
||||
// fsm.StopBgm();
|
||||
// fsm.Unlight_DisableInteraction("group22");
|
||||
// fsm.InteractionDown("group22", null);
|
||||
// Game.Instance.eventManager.Raise(new PlayTrueOrFalseEvent() { isTrue = true });
|
||||
// fsm.PlayClip("第一第二心音减弱2");
|
||||
// ChatUI.Instance.SendAI("心脏听诊》病理性心音》第一/第二心音减弱》步骤1", null);
|
||||
// fsm.ShowNextPanel(() => {
|
||||
// ChatUI.Instance.CloseChatTxt();
|
||||
// fsm.StopClip("第一第二心音减弱2");
|
||||
// fsm.ShowTxtQuestion("心脏听诊》病理性心音》第一/第二心音减弱》步骤2", 5, 0, 0, () => {
|
||||
// fsm.nextState = true;
|
||||
// });
|
||||
// });
|
||||
//});
|
||||
}
|
||||
public override void OnStateStay()
|
||||
{
|
||||
base.OnStateStay();
|
||||
if (PositionValue == "5" || Input.GetKeyDown(KeyCode.L))
|
||||
{
|
||||
if (step)
|
||||
{
|
||||
step = false;
|
||||
fsm.StopBgm();
|
||||
fsm.Unlight_DisableInteraction("group22");
|
||||
//fsm.InteractionDown("group22", null);
|
||||
Game.Instance.eventManager.Raise(new PlayTrueOrFalseEvent() { isTrue = true });
|
||||
fsm.PlayClip("第一第二心音减弱_听诊器");
|
||||
ChatUI.Instance.SendAI("心脏听诊》病理性心音》第一/第二心音减弱》步骤1", null);
|
||||
fsm.ShowNextPanel(() => {
|
||||
ChatUI.Instance.CloseChatTxt();
|
||||
fsm.StopClip("第一第二心音减弱_听诊器");
|
||||
fsm.ShowTxtQuestion("心脏听诊》病理性心音》第一/第二心音减弱》步骤2", 5, 0, 0, () => {
|
||||
fsm.nextState = true;
|
||||
});
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
public override void OnStateExit()
|
||||
{
|
||||
base.OnStateExit();
|
||||
fsm.StopClip("第一第二心音减弱2");
|
||||
step = false;
|
||||
fsm.StopClip("第一第二心音减弱_听诊器");
|
||||
fsm.nextState = false;
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,42 +1,76 @@
|
||||
using FSM;
|
||||
using UnityEngine;
|
||||
using ZXKFramework;
|
||||
namespace YiLiao.XinFeiTingZhen
|
||||
{
|
||||
public class DiYiDiErXinYinZengQiangState : FsmState<FSMManager>
|
||||
{
|
||||
bool step;
|
||||
string PositionValue
|
||||
{
|
||||
get
|
||||
{
|
||||
return GameManager.Instance.sensorManager.GetSensor<TZQ_Sensor>().positionValue.ToString();
|
||||
}
|
||||
}
|
||||
public override void OnStateEnter()
|
||||
{
|
||||
base.OnStateEnter();
|
||||
fsm.ShowTip(0);
|
||||
fsm.PlayBgm(0);
|
||||
step = true;
|
||||
GameManager.Instance.sensorManager.SendFunction("#ID:5;SONG:5;%");
|
||||
fsm.PlayClip("µÚÒ»µÚ¶þÐÄÒôÔöÇ¿");
|
||||
fsm.Light_EnableInteraction("group22");
|
||||
fsm.InteractionDown("group22", obj => {
|
||||
fsm.StopBgm();
|
||||
fsm.Unlight_DisableInteraction("group22");
|
||||
fsm.InteractionDown("group22", null);
|
||||
Game.Instance.eventManager.Raise(new PlayTrueOrFalseEvent() { isTrue = true });
|
||||
fsm.PlayClip("第一第二心音增强2");
|
||||
ChatUI.Instance.SendAI("心脏听诊》病理性心音》第一/第二心音增强》步骤1", null);
|
||||
fsm.ShowNextPanel(() => {
|
||||
ChatUI.Instance.CloseChatTxt();
|
||||
fsm.StopClip("第一第二心音增强2");
|
||||
fsm.ShowTxtQuestion("心脏听诊》病理性心音》第一/第二心音增强》步骤2", 3, 0, 0, () => {
|
||||
fsm.ShowTxtQuestion("心脏听诊》病理性心音》第一/第二心音增强》步骤3", 4, 0, 0, () => {
|
||||
fsm.nextState = true;
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
//fsm.InteractionDown("group22", obj => {
|
||||
// fsm.StopBgm();
|
||||
// fsm.Unlight_DisableInteraction("group22");
|
||||
// fsm.InteractionDown("group22", null);
|
||||
// Game.Instance.eventManager.Raise(new PlayTrueOrFalseEvent() { isTrue = true });
|
||||
// fsm.PlayClip("第一第二心音增强2");
|
||||
// ChatUI.Instance.SendAI("心脏听诊》病理性心音》第一/第二心音增强》步骤1", null);
|
||||
// fsm.ShowNextPanel(() => {
|
||||
// ChatUI.Instance.CloseChatTxt();
|
||||
// fsm.StopClip("第一第二心音增强2");
|
||||
// fsm.ShowTxtQuestion("心脏听诊》病理性心音》第一/第二心音增强》步骤2", 3, 0, 0, () => {
|
||||
// fsm.ShowTxtQuestion("心脏听诊》病理性心音》第一/第二心音增强》步骤3", 4, 0, 0, () => {
|
||||
// fsm.nextState = true;
|
||||
// });
|
||||
// });
|
||||
// });
|
||||
//});
|
||||
}
|
||||
public override void OnStateStay()
|
||||
{
|
||||
base.OnStateStay();
|
||||
if (PositionValue == "5" || Input.GetKeyDown(KeyCode.L))
|
||||
{
|
||||
if (step)
|
||||
{
|
||||
step = false;
|
||||
fsm.StopBgm();
|
||||
fsm.Unlight_DisableInteraction("group22");
|
||||
//fsm.InteractionDown("group22", null);
|
||||
Game.Instance.eventManager.Raise(new PlayTrueOrFalseEvent() { isTrue = true });
|
||||
fsm.PlayClip("第一第二心音增强_听诊器");
|
||||
ChatUI.Instance.SendAI("心脏听诊》病理性心音》第一/第二心音增强》步骤1", null);
|
||||
fsm.ShowNextPanel(() => {
|
||||
ChatUI.Instance.CloseChatTxt();
|
||||
fsm.StopClip("第一第二心音增强_听诊器");
|
||||
fsm.ShowTxtQuestion("心脏听诊》病理性心音》第一/第二心音增强》步骤2", 3, 0, 0, () => {
|
||||
fsm.ShowTxtQuestion("心脏听诊》病理性心音》第一/第二心音增强》步骤3", 4, 0, 0, () => {
|
||||
fsm.nextState = true;
|
||||
});
|
||||
});
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
public override void OnStateExit()
|
||||
{
|
||||
base.OnStateExit();
|
||||
fsm.StopClip("第一第二心音增强2");
|
||||
step = false;
|
||||
fsm.StopClip("第一第二心音增强_听诊器");
|
||||
fsm.nextState = false;
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,37 +1,66 @@
|
||||
using FSM;
|
||||
using UnityEngine;
|
||||
using ZXKFramework;
|
||||
namespace YiLiao.XinFeiTingZhen
|
||||
{
|
||||
public class DouXingXinDongGuoHuanState : FsmState<FSMManager>
|
||||
{
|
||||
bool step;
|
||||
string PositionValue
|
||||
{
|
||||
get
|
||||
{
|
||||
return GameManager.Instance.sensorManager.GetSensor<TZQ_Sensor>().positionValue.ToString();
|
||||
}
|
||||
}
|
||||
public override void OnStateEnter()
|
||||
{
|
||||
base.OnStateEnter();
|
||||
fsm.ShowTip(0);
|
||||
fsm.PlayBgm(0);
|
||||
step = true;
|
||||
GameManager.Instance.sensorManager.SendFunction("#ID:5;SONG:4;%");
|
||||
fsm.PlayClip("ñ¼ÐÔÐ͝¹ý»º");
|
||||
fsm.Light_EnableInteraction("group22");
|
||||
fsm.InteractionDown("group22", obj => {
|
||||
fsm.StopBgm();
|
||||
fsm.Unlight_DisableInteraction("group22");
|
||||
fsm.InteractionDown("group22", null);
|
||||
Game.Instance.eventManager.Raise(new PlayTrueOrFalseEvent() { isTrue = true });
|
||||
fsm.PlayClip("窦性心动过缓2");
|
||||
ChatUI.Instance.SendAI("心脏听诊》病理性心音》窦性心动过缓", null);
|
||||
fsm.ShowNextPanel(() => {
|
||||
ChatUI.Instance.CloseChatTxt();
|
||||
fsm.nextState = true;
|
||||
});
|
||||
});
|
||||
//fsm.InteractionDown("group22", obj => {
|
||||
// fsm.StopBgm();
|
||||
// fsm.Unlight_DisableInteraction("group22");
|
||||
// fsm.InteractionDown("group22", null);
|
||||
// Game.Instance.eventManager.Raise(new PlayTrueOrFalseEvent() { isTrue = true });
|
||||
// fsm.PlayClip("窦性心动过缓2");
|
||||
// ChatUI.Instance.SendAI("心脏听诊》病理性心音》窦性心动过缓", null);
|
||||
// fsm.ShowNextPanel(() => {
|
||||
// ChatUI.Instance.CloseChatTxt();
|
||||
// fsm.nextState = true;
|
||||
// });
|
||||
//});
|
||||
}
|
||||
public override void OnStateStay()
|
||||
{
|
||||
base.OnStateStay();
|
||||
if (PositionValue == "5" || Input.GetKeyDown(KeyCode.L))
|
||||
{
|
||||
if (step)
|
||||
{
|
||||
step = false;
|
||||
fsm.StopBgm();
|
||||
fsm.Unlight_DisableInteraction("group22");
|
||||
//fsm.InteractionDown("group22", null);
|
||||
Game.Instance.eventManager.Raise(new PlayTrueOrFalseEvent() { isTrue = true });
|
||||
fsm.PlayClip("窦性心动过缓_听诊器");
|
||||
ChatUI.Instance.SendAI("心脏听诊》病理性心音》窦性心动过缓", null);
|
||||
fsm.ShowNextPanel(() => {
|
||||
ChatUI.Instance.CloseChatTxt();
|
||||
fsm.nextState = true;
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
public override void OnStateExit()
|
||||
{
|
||||
base.OnStateExit();
|
||||
fsm.StopClip("窦性心动过缓2");
|
||||
step = false;
|
||||
fsm.StopClip("窦性心动过缓_听诊器");
|
||||
fsm.nextState = false;
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,38 +1,75 @@
|
||||
using FSM;
|
||||
using UnityEngine;
|
||||
using ZXKFramework;
|
||||
namespace YiLiao.XinFeiTingZhen
|
||||
{
|
||||
public class DouXingXinDongGuoSuState : FsmState<FSMManager>
|
||||
{
|
||||
bool step;
|
||||
string PositionValue
|
||||
{
|
||||
get
|
||||
{
|
||||
return GameManager.Instance.sensorManager.GetSensor<TZQ_Sensor>().positionValue.ToString();
|
||||
}
|
||||
}
|
||||
public override void OnStateEnter()
|
||||
{
|
||||
base.OnStateEnter();
|
||||
GameManager.Instance.sensorManager.SendFunction("#ID:5;SONG:3;%");
|
||||
fsm.ShowTip(0);
|
||||
fsm.PlayBgm(0);
|
||||
fsm.PlayClip("ñ¼ÐÔÐ͝¹ýËÙ");
|
||||
fsm.Light_EnableInteraction("group22");
|
||||
fsm.InteractionDown("group22", obj => {
|
||||
fsm.StopBgm();
|
||||
fsm.Unlight_DisableInteraction("group22");
|
||||
fsm.InteractionDown("group22", null);
|
||||
Game.Instance.eventManager.Raise(new PlayTrueOrFalseEvent() { isTrue = true });
|
||||
fsm.PlayClip("窦性心动过速2");
|
||||
ChatUI.Instance.SendAI("心脏听诊》病理性心音》窦性心动过速》步骤1",null);
|
||||
fsm.ShowNextPanel(() => {
|
||||
ChatUI.Instance.CloseChatTxt();
|
||||
fsm.StopClip("窦性心动过速2");
|
||||
fsm.ShowTxtQuestion("心脏听诊》病理性心音》窦性心动过速》步骤2", 2, 0, 0, () =>
|
||||
{
|
||||
fsm.nextState = true;
|
||||
});
|
||||
});
|
||||
});
|
||||
step = true;
|
||||
//fsm.InteractionDown("group22", obj => {
|
||||
// fsm.StopBgm();
|
||||
// fsm.Unlight_DisableInteraction("group22");
|
||||
// fsm.InteractionDown("group22", null);
|
||||
// Game.Instance.eventManager.Raise(new PlayTrueOrFalseEvent() { isTrue = true });
|
||||
// fsm.PlayClip("窦性心动过速2");
|
||||
// ChatUI.Instance.SendAI("心脏听诊》病理性心音》窦性心动过速》步骤1",null);
|
||||
// fsm.ShowNextPanel(() => {
|
||||
// ChatUI.Instance.CloseChatTxt();
|
||||
// fsm.StopClip("窦性心动过速2");
|
||||
// fsm.ShowTxtQuestion("心脏听诊》病理性心音》窦性心动过速》步骤2", 2, 0, 0, () =>
|
||||
// {
|
||||
// fsm.nextState = true;
|
||||
// });
|
||||
// });
|
||||
//});
|
||||
}
|
||||
|
||||
public override void OnStateStay()
|
||||
{
|
||||
base.OnStateStay();
|
||||
if (PositionValue == "5" || Input.GetKeyDown(KeyCode.L))
|
||||
{
|
||||
if (step)
|
||||
{
|
||||
step = false;
|
||||
fsm.StopBgm();
|
||||
fsm.Unlight_DisableInteraction("group22");
|
||||
//fsm.InteractionDown("group22", null);
|
||||
Game.Instance.eventManager.Raise(new PlayTrueOrFalseEvent() { isTrue = true });
|
||||
fsm.PlayClip("窦性心动过速_听诊器");
|
||||
ChatUI.Instance.SendAI("心脏听诊》病理性心音》窦性心动过速》步骤1", null);
|
||||
fsm.ShowNextPanel(() => {
|
||||
fsm.StopClip("窦性心动过速_听诊器");
|
||||
ChatUI.Instance.CloseChatTxt();
|
||||
fsm.ShowTxtQuestion("心脏听诊》病理性心音》窦性心动过速》步骤2", 2, 0, 0, () =>
|
||||
{
|
||||
fsm.nextState = true;
|
||||
});
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public override void OnStateExit()
|
||||
{
|
||||
base.OnStateExit();
|
||||
fsm.StopClip("窦性心动过速2");
|
||||
step = false;
|
||||
fsm.StopClip("窦性心动过速_听诊器");
|
||||
fsm.nextState = false;
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,9 +1,18 @@
|
||||
using FSM;
|
||||
using UnityEngine;
|
||||
using ZXKFramework;
|
||||
namespace YiLiao.XinFeiTingZhen
|
||||
{
|
||||
public class JinShuYangXinYinState : FsmState<FSMManager>
|
||||
{
|
||||
bool step;
|
||||
string PositionValue
|
||||
{
|
||||
get
|
||||
{
|
||||
return GameManager.Instance.sensorManager.GetSensor<TZQ_Sensor>().positionValue.ToString();
|
||||
}
|
||||
}
|
||||
public override void OnStateEnter()
|
||||
{
|
||||
base.OnStateEnter();
|
||||
@ -11,25 +20,48 @@ namespace YiLiao.XinFeiTingZhen
|
||||
fsm.PlayBgm(0);
|
||||
fsm.PlayClip("½ðÊôÑùÐÄÒô");
|
||||
fsm.Light_EnableInteraction("group22");
|
||||
fsm.InteractionDown("group22", obj => {
|
||||
fsm.StopBgm();
|
||||
fsm.Unlight_DisableInteraction("group22");
|
||||
fsm.InteractionDown("group22", null);
|
||||
Game.Instance.eventManager.Raise(new PlayTrueOrFalseEvent() { isTrue = true });
|
||||
fsm.PlayClip("金属样心音2");
|
||||
ChatUI.Instance.SendAI("心脏听诊》病理性心音》金属样心音", null);
|
||||
fsm.ShowNextPanel(() => {
|
||||
ChatUI.Instance.CloseChatTxt();
|
||||
fsm.StopClip("金属样心音2");
|
||||
fsm.nextState = true;
|
||||
});
|
||||
});
|
||||
step = true;
|
||||
GameManager.Instance.sensorManager.SendFunction("#ID:5;SONG:8;%");
|
||||
//fsm.InteractionDown("group22", obj => {
|
||||
// fsm.StopBgm();
|
||||
// fsm.Unlight_DisableInteraction("group22");
|
||||
// fsm.InteractionDown("group22", null);
|
||||
// Game.Instance.eventManager.Raise(new PlayTrueOrFalseEvent() { isTrue = true });
|
||||
// fsm.PlayClip("金属样心音2");
|
||||
// ChatUI.Instance.SendAI("心脏听诊》病理性心音》金属样心音", null);
|
||||
// fsm.ShowNextPanel(() => {
|
||||
// ChatUI.Instance.CloseChatTxt();
|
||||
// fsm.StopClip("金属样心音2");
|
||||
// fsm.nextState = true;
|
||||
// });
|
||||
//});
|
||||
}
|
||||
public override void OnStateStay()
|
||||
{
|
||||
base.OnStateStay();
|
||||
if (PositionValue == "5" || Input.GetKeyDown(KeyCode.L))
|
||||
{
|
||||
if (step)
|
||||
{
|
||||
step = false;
|
||||
fsm.StopBgm();
|
||||
fsm.Unlight_DisableInteraction("group22");
|
||||
//fsm.InteractionDown("group22", null);
|
||||
Game.Instance.eventManager.Raise(new PlayTrueOrFalseEvent() { isTrue = true });
|
||||
fsm.PlayClip("金属样心音_听诊器");
|
||||
ChatUI.Instance.SendAI("心脏听诊》病理性心音》金属样心音", null);
|
||||
fsm.ShowNextPanel(() => {
|
||||
ChatUI.Instance.CloseChatTxt();
|
||||
fsm.nextState = true;
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public override void OnStateExit()
|
||||
{
|
||||
base.OnStateExit();
|
||||
fsm.StopClip("金属样心音2");
|
||||
step = false;
|
||||
fsm.StopClip("金属样心音_听诊器");
|
||||
fsm.nextState = false;
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,9 +1,18 @@
|
||||
using FSM;
|
||||
using UnityEngine;
|
||||
using ZXKFramework;
|
||||
namespace YiLiao.XinFeiTingZhen
|
||||
{
|
||||
public class QianQiShouSuoState : FsmState<FSMManager>
|
||||
{
|
||||
bool step;
|
||||
string PositionValue
|
||||
{
|
||||
get
|
||||
{
|
||||
return GameManager.Instance.sensorManager.GetSensor<TZQ_Sensor>().positionValue.ToString();
|
||||
}
|
||||
}
|
||||
public override void OnStateEnter()
|
||||
{
|
||||
base.OnStateEnter();
|
||||
@ -11,27 +20,53 @@ namespace YiLiao.XinFeiTingZhen
|
||||
fsm.PlayBgm(0);
|
||||
fsm.PlayClip("ÆÚǰÊÕËõ");
|
||||
fsm.Light_EnableInteraction("group22");
|
||||
fsm.InteractionDown("group22", obj => {
|
||||
fsm.StopBgm();
|
||||
fsm.Unlight_DisableInteraction("group22");
|
||||
fsm.InteractionDown("group22", null);
|
||||
Game.Instance.eventManager.Raise(new PlayTrueOrFalseEvent() { isTrue = true });
|
||||
fsm.PlayClip("期前收缩2");
|
||||
ChatUI.Instance.SendAI("心脏听诊》病理性心音》期前收缩》步骤1", null);
|
||||
fsm.ShowNextPanel(() => {
|
||||
ChatUI.Instance.CloseChatTxt();
|
||||
fsm.StopClip("期前收缩2");
|
||||
fsm.ShowTxtQuestion("心脏听诊》病理性心音》期前收缩》步骤2", 8, 0, 0, () => {
|
||||
fsm.nextState = true;
|
||||
});
|
||||
});
|
||||
});
|
||||
step = true;
|
||||
GameManager.Instance.sensorManager.SendFunction("#ID:5;SONG:11;%");
|
||||
//fsm.InteractionDown("group22", obj => {
|
||||
// fsm.StopBgm();
|
||||
// fsm.Unlight_DisableInteraction("group22");
|
||||
// //fsm.InteractionDown("group22", null);
|
||||
// Game.Instance.eventManager.Raise(new PlayTrueOrFalseEvent() { isTrue = true });
|
||||
// fsm.PlayClip("期前收缩_听诊器");
|
||||
// ChatUI.Instance.SendAI("心脏听诊》病理性心音》期前收缩》步骤1", null);
|
||||
// fsm.ShowNextPanel(() => {
|
||||
// ChatUI.Instance.CloseChatTxt();
|
||||
// fsm.StopClip("期前收缩_听诊器");
|
||||
// fsm.ShowTxtQuestion("心脏听诊》病理性心音》期前收缩》步骤2", 8, 0, 0, () => {
|
||||
// fsm.nextState = true;
|
||||
// });
|
||||
// });
|
||||
//});
|
||||
}
|
||||
public override void OnStateStay()
|
||||
{
|
||||
base.OnStateStay();
|
||||
if (PositionValue == "5" || Input.GetKeyDown(KeyCode.L))
|
||||
{
|
||||
if (step)
|
||||
{
|
||||
step = false;
|
||||
fsm.StopBgm();
|
||||
fsm.Unlight_DisableInteraction("group22");
|
||||
//fsm.InteractionDown("group22", null);
|
||||
Game.Instance.eventManager.Raise(new PlayTrueOrFalseEvent() { isTrue = true });
|
||||
fsm.PlayClip("期前收缩_听诊器");
|
||||
ChatUI.Instance.SendAI("心脏听诊》病理性心音》期前收缩》步骤1", null);
|
||||
fsm.ShowNextPanel(() => {
|
||||
ChatUI.Instance.CloseChatTxt();
|
||||
fsm.StopClip("期前收缩_听诊器");
|
||||
fsm.ShowTxtQuestion("心脏听诊》病理性心音》期前收缩》步骤2", 8, 0, 0, () => {
|
||||
fsm.nextState = true;
|
||||
});
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public override void OnStateExit()
|
||||
{
|
||||
base.OnStateExit();
|
||||
fsm.StopClip("期前收缩2");
|
||||
step = false;
|
||||
fsm.StopClip("期前收缩_听诊器");
|
||||
fsm.nextState = false;
|
||||
}
|
||||
}
|
||||
|
||||
@ -0,0 +1,19 @@
|
||||
using FSM;
|
||||
namespace YiLiao.XinFeiTingZhen
|
||||
{
|
||||
public class TestState : FsmState<FSMManager>
|
||||
{
|
||||
public override void OnStateEnter()
|
||||
{
|
||||
base.OnStateEnter();
|
||||
}
|
||||
public override void OnStateStay()
|
||||
{
|
||||
base.OnStateStay();
|
||||
}
|
||||
public override void OnStateExit()
|
||||
{
|
||||
base.OnStateExit();
|
||||
}
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 873f0e5ccc9a232428be5933c654035e
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@ -1,42 +1,76 @@
|
||||
using FSM;
|
||||
using UnityEngine;
|
||||
using ZXKFramework;
|
||||
namespace YiLiao.XinFeiTingZhen
|
||||
{
|
||||
public class XinYinFenLieHeChongFuState : FsmState<FSMManager>
|
||||
{
|
||||
bool step;
|
||||
string PositionValue
|
||||
{
|
||||
get
|
||||
{
|
||||
return GameManager.Instance.sensorManager.GetSensor<TZQ_Sensor>().positionValue.ToString();
|
||||
}
|
||||
}
|
||||
public override void OnStateEnter()
|
||||
{
|
||||
base.OnStateEnter();
|
||||
fsm.ShowTip(0);
|
||||
fsm.PlayBgm(0);
|
||||
fsm.PlayClip("ÐÄÒô·ÖÁѺÍÖØ¸´");
|
||||
step = true;
|
||||
fsm.Light_EnableInteraction("group22");
|
||||
fsm.InteractionDown("group22", obj => {
|
||||
fsm.StopBgm();
|
||||
fsm.Unlight_DisableInteraction("group22");
|
||||
fsm.InteractionDown("group22", null);
|
||||
Game.Instance.eventManager.Raise(new PlayTrueOrFalseEvent() { isTrue = true });
|
||||
fsm.PlayClip("心音分裂和重复2");
|
||||
ChatUI.Instance.SendAI("心脏听诊》病理性心音》心音分裂和重复》步骤1", null);
|
||||
fsm.ShowNextPanel(() => {
|
||||
ChatUI.Instance.CloseChatTxt();
|
||||
fsm.StopClip("心音分裂和重复2");
|
||||
fsm.ShowTxtQuestion("心脏听诊》病理性心音》心音分裂和重复》步骤2", 6, 0, 0, () => {
|
||||
fsm.ShowTxtQuestion("心脏听诊》病理性心音》心音分裂和重复》步骤3", 7, 0, 0, () => {
|
||||
fsm.nextState = true;
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
GameManager.Instance.sensorManager.SendFunction("#ID:5;SONG:9;%");
|
||||
//fsm.InteractionDown("group22", obj => {
|
||||
// fsm.StopBgm();
|
||||
// fsm.Unlight_DisableInteraction("group22");
|
||||
// fsm.InteractionDown("group22", null);
|
||||
// Game.Instance.eventManager.Raise(new PlayTrueOrFalseEvent() { isTrue = true });
|
||||
// fsm.PlayClip("心音分裂和重复2");
|
||||
// ChatUI.Instance.SendAI("心脏听诊》病理性心音》心音分裂和重复》步骤1", null);
|
||||
// fsm.ShowNextPanel(() => {
|
||||
// ChatUI.Instance.CloseChatTxt();
|
||||
// fsm.StopClip("心音分裂和重复2");
|
||||
// fsm.ShowTxtQuestion("心脏听诊》病理性心音》心音分裂和重复》步骤2", 6, 0, 0, () => {
|
||||
// fsm.ShowTxtQuestion("心脏听诊》病理性心音》心音分裂和重复》步骤3", 7, 0, 0, () => {
|
||||
// fsm.nextState = true;
|
||||
// });
|
||||
// });
|
||||
// });
|
||||
//});
|
||||
}
|
||||
public override void OnStateStay()
|
||||
{
|
||||
base.OnStateStay();
|
||||
if (PositionValue == "5" || Input.GetKeyDown(KeyCode.L))
|
||||
{
|
||||
if (step)
|
||||
{
|
||||
step = false;
|
||||
fsm.StopBgm();
|
||||
fsm.Unlight_DisableInteraction("group22");
|
||||
//fsm.InteractionDown("group22", null);
|
||||
Game.Instance.eventManager.Raise(new PlayTrueOrFalseEvent() { isTrue = true });
|
||||
fsm.PlayClip("心音分裂和重复_听诊器");
|
||||
ChatUI.Instance.SendAI("心脏听诊》病理性心音》心音分裂和重复》步骤1", null);
|
||||
fsm.ShowNextPanel(() => {
|
||||
ChatUI.Instance.CloseChatTxt();
|
||||
fsm.StopClip("心音分裂和重复_听诊器");
|
||||
fsm.ShowTxtQuestion("心脏听诊》病理性心音》心音分裂和重复》步骤2", 6, 0, 0, () => {
|
||||
fsm.ShowTxtQuestion("心脏听诊》病理性心音》心音分裂和重复》步骤3", 7, 0, 0, () => {
|
||||
fsm.nextState = true;
|
||||
});
|
||||
});
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
public override void OnStateExit()
|
||||
{
|
||||
base.OnStateExit();
|
||||
fsm.StopClip("心音分裂和重复2");
|
||||
step = false;
|
||||
fsm.StopClip("心音分裂和重复_听诊器");
|
||||
fsm.nextState = false;
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,35 +1,67 @@
|
||||
using FSM;
|
||||
using UnityEngine;
|
||||
using ZXKFramework;
|
||||
namespace YiLiao.XinFeiTingZhen
|
||||
{
|
||||
public class XinYinHunZhuoState : FsmState<FSMManager>
|
||||
{
|
||||
bool step;
|
||||
string PositionValue
|
||||
{
|
||||
get
|
||||
{
|
||||
return GameManager.Instance.sensorManager.GetSensor<TZQ_Sensor>().positionValue.ToString();
|
||||
}
|
||||
}
|
||||
public override void OnStateEnter()
|
||||
{
|
||||
base.OnStateEnter();
|
||||
fsm.ShowTip(0);
|
||||
fsm.PlayBgm(0);
|
||||
step = true;
|
||||
GameManager.Instance.sensorManager.SendFunction("#ID:5;SONG:7;%");
|
||||
fsm.PlayClip("ÐÄÒô»ë×Ç");
|
||||
fsm.Light_EnableInteraction("group22");
|
||||
fsm.InteractionDown("group22", obj => {
|
||||
fsm.StopBgm();
|
||||
fsm.Unlight_DisableInteraction("group22");
|
||||
fsm.InteractionDown("group22", null);
|
||||
Game.Instance.eventManager.Raise(new PlayTrueOrFalseEvent() { isTrue = true });
|
||||
fsm.PlayClip("心音浑浊2");
|
||||
ChatUI.Instance.SendAI("心脏听诊》病理性心音》心音浑浊", null);
|
||||
fsm.ShowNextPanel(() => {
|
||||
ChatUI.Instance.CloseChatTxt();
|
||||
fsm.StopClip("心音浑浊2");
|
||||
fsm.nextState = true;
|
||||
});
|
||||
});
|
||||
//fsm.InteractionDown("group22", obj => {
|
||||
// fsm.StopBgm();
|
||||
// fsm.Unlight_DisableInteraction("group22");
|
||||
// fsm.InteractionDown("group22", null);
|
||||
// Game.Instance.eventManager.Raise(new PlayTrueOrFalseEvent() { isTrue = true });
|
||||
// fsm.PlayClip("心音浑浊2");
|
||||
// ChatUI.Instance.SendAI("心脏听诊》病理性心音》心音浑浊", null);
|
||||
// fsm.ShowNextPanel(() => {
|
||||
// ChatUI.Instance.CloseChatTxt();
|
||||
// fsm.StopClip("心音浑浊2");
|
||||
// fsm.nextState = true;
|
||||
// });
|
||||
//});
|
||||
}
|
||||
public override void OnStateStay()
|
||||
{
|
||||
base.OnStateStay();
|
||||
if (PositionValue == "5" || Input.GetKeyDown(KeyCode.L))
|
||||
{
|
||||
if (step)
|
||||
{
|
||||
step = false;
|
||||
fsm.StopBgm();
|
||||
fsm.Unlight_DisableInteraction("group22");
|
||||
//fsm.InteractionDown("group22", null);
|
||||
Game.Instance.eventManager.Raise(new PlayTrueOrFalseEvent() { isTrue = true });
|
||||
fsm.PlayClip("心音浑浊_听诊器");
|
||||
ChatUI.Instance.SendAI("心脏听诊》病理性心音》心音浑浊", null);
|
||||
fsm.ShowNextPanel(() => {
|
||||
ChatUI.Instance.CloseChatTxt();
|
||||
fsm.nextState = true;
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public override void OnStateExit()
|
||||
{
|
||||
base.OnStateExit();
|
||||
fsm.StopClip("心音浑浊2");
|
||||
step = false;
|
||||
fsm.StopClip("心音浑浊_听诊器");
|
||||
fsm.nextState = false;
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,55 +1,91 @@
|
||||
using FSM;
|
||||
using UnityEngine;
|
||||
using ZXKFramework;
|
||||
namespace YiLiao.XinFeiTingZhen
|
||||
{
|
||||
public class ZhengChangDiErXinYinState : FsmState<FSMManager>
|
||||
{
|
||||
bool step;
|
||||
string PositionValue
|
||||
{
|
||||
get
|
||||
{
|
||||
return GameManager.Instance.sensorManager.GetSensor<TZQ_Sensor>().positionValue.ToString();
|
||||
}
|
||||
}
|
||||
public override void OnStateEnter()
|
||||
{
|
||||
base.OnStateEnter();
|
||||
GameManager.Instance.sensorManager.SendFunction("#ID:3,4;SONG:2,2;%");
|
||||
fsm.ShowTip(0);
|
||||
fsm.PlayBgm(0);
|
||||
fsm.PlayClip("正常第二心音", () => {
|
||||
fsm.Light_EnableInteraction("主动脉瓣口");
|
||||
fsm.Light_EnableInteraction("肺动脉瓣口");
|
||||
fsm.ShowArrow("请将实物听诊器听诊头放置在如图示犬的第一心音最强听取点听诊正常心音", "主动脉瓣口", false, 0, 0, 20);
|
||||
step = true;
|
||||
});
|
||||
fsm.InteractionDown("主动脉瓣口", obj => {
|
||||
fsm.StopBgm();
|
||||
fsm.InteractionDown("主动脉瓣口", null);
|
||||
fsm.InteractionDown("肺动脉瓣口", null);
|
||||
fsm.Unlight_DisableInteraction("肺动脉瓣口");
|
||||
fsm.Unlight_DisableInteraction("主动脉瓣口");
|
||||
fsm.HideArrow();
|
||||
Game.Instance.eventManager.Raise(new PlayTrueOrFalseEvent() { isTrue = true });
|
||||
fsm.PlayClip("正常第二心音2");
|
||||
ChatUI.Instance.SendAI("心脏听诊》正常心音》正常第二心音", null);
|
||||
fsm.ShowNextPanel(() => {
|
||||
ChatUI.Instance.CloseChatTxt();
|
||||
fsm.nextState = true;
|
||||
});
|
||||
});
|
||||
fsm.InteractionDown("肺动脉瓣口", obj => {
|
||||
fsm.StopBgm();
|
||||
fsm.InteractionDown("肺动脉瓣口", null);
|
||||
fsm.InteractionDown("主动脉瓣口", null);
|
||||
fsm.Unlight_DisableInteraction("肺动脉瓣口");
|
||||
fsm.Unlight_DisableInteraction("主动脉瓣口");
|
||||
fsm.HideArrow();
|
||||
Game.Instance.eventManager.Raise(new PlayTrueOrFalseEvent() { isTrue = true });
|
||||
fsm.PlayClip("正常第二心音2");
|
||||
ChatUI.Instance.SendAI("心脏听诊》正常心音》正常第二心音", null);
|
||||
fsm.ShowNextPanel(() => {
|
||||
ChatUI.Instance.CloseChatTxt();
|
||||
fsm.nextState = true;
|
||||
});
|
||||
});
|
||||
//fsm.InteractionDown("主动脉瓣口", obj => {
|
||||
// fsm.StopBgm();
|
||||
// fsm.InteractionDown("主动脉瓣口", null);
|
||||
// fsm.InteractionDown("肺动脉瓣口", null);
|
||||
// fsm.Unlight_DisableInteraction("肺动脉瓣口");
|
||||
// fsm.Unlight_DisableInteraction("主动脉瓣口");
|
||||
// fsm.HideArrow();
|
||||
// Game.Instance.eventManager.Raise(new PlayTrueOrFalseEvent() { isTrue = true });
|
||||
// fsm.PlayClip("正常第二心音2");
|
||||
// ChatUI.Instance.SendAI("心脏听诊》正常心音》正常第二心音", null);
|
||||
// fsm.ShowNextPanel(() => {
|
||||
// ChatUI.Instance.CloseChatTxt();
|
||||
// fsm.nextState = true;
|
||||
// });
|
||||
//});
|
||||
//fsm.InteractionDown("肺动脉瓣口", obj => {
|
||||
// fsm.StopBgm();
|
||||
// fsm.InteractionDown("肺动脉瓣口", null);
|
||||
// fsm.InteractionDown("主动脉瓣口", null);
|
||||
// fsm.Unlight_DisableInteraction("肺动脉瓣口");
|
||||
// fsm.Unlight_DisableInteraction("主动脉瓣口");
|
||||
// fsm.HideArrow();
|
||||
// Game.Instance.eventManager.Raise(new PlayTrueOrFalseEvent() { isTrue = true });
|
||||
// fsm.PlayClip("正常第二心音2");
|
||||
// ChatUI.Instance.SendAI("心脏听诊》正常心音》正常第二心音", null);
|
||||
// fsm.ShowNextPanel(() => {
|
||||
// ChatUI.Instance.CloseChatTxt();
|
||||
// fsm.nextState = true;
|
||||
// });
|
||||
//});
|
||||
}
|
||||
public override void OnStateStay()
|
||||
{
|
||||
base.OnStateStay();
|
||||
if (PositionValue == "3" || PositionValue == "4" || Input.GetKeyDown(KeyCode.L))
|
||||
{
|
||||
if (step)
|
||||
{
|
||||
step = false;
|
||||
fsm.StopBgm();
|
||||
//fsm.InteractionDown("肺动脉瓣口", null);
|
||||
//fsm.InteractionDown("主动脉瓣口", null);
|
||||
fsm.Unlight_DisableInteraction("肺动脉瓣口");
|
||||
fsm.Unlight_DisableInteraction("主动脉瓣口");
|
||||
fsm.HideArrow();
|
||||
Game.Instance.eventManager.Raise(new PlayTrueOrFalseEvent() { isTrue = true });
|
||||
fsm.PlayClip("正常第二心音_听诊器");
|
||||
ChatUI.Instance.SendAI("心脏听诊》正常心音》正常第二心音", null);
|
||||
fsm.ShowNextPanel(() =>
|
||||
{
|
||||
ChatUI.Instance.CloseChatTxt();
|
||||
fsm.nextState = true;
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public override void OnStateExit()
|
||||
{
|
||||
base.OnStateExit();
|
||||
fsm.StopClip("正常第二心音2");
|
||||
step = false;
|
||||
fsm.StopClip("正常第二心音_听诊器");
|
||||
fsm.nextState = false;
|
||||
}
|
||||
}
|
||||
|
||||
@ -1,55 +1,91 @@
|
||||
using FSM;
|
||||
using UnityEngine;
|
||||
using ZXKFramework;
|
||||
namespace YiLiao.XinFeiTingZhen
|
||||
{
|
||||
public class ZhengChangDiYiXinYinState : FsmState<FSMManager>
|
||||
{
|
||||
bool step;
|
||||
string PositionValue
|
||||
{
|
||||
get
|
||||
{
|
||||
return GameManager.Instance.sensorManager.GetSensor<TZQ_Sensor>().positionValue.ToString();
|
||||
}
|
||||
}
|
||||
public override void OnStateEnter()
|
||||
{
|
||||
base.OnStateEnter();
|
||||
fsm.ShowTip(0);
|
||||
fsm.PlayBgm(0);
|
||||
GameManager.Instance.sensorManager.SendFunction("#ID:1,2;SONG:1,1;%");
|
||||
fsm.PlayClip("正常第一心音", () =>{
|
||||
fsm.Light_EnableInteraction("二尖瓣口");
|
||||
fsm.Light_EnableInteraction("三尖瓣口");
|
||||
fsm.ShowArrow("请将实物听诊器听诊头放置在如图示犬的第一心音最强听取点听诊正常心音", "二尖瓣口",false, 0, 0, 20);
|
||||
step = true;
|
||||
});
|
||||
fsm.InteractionDown("媼潑國諳", obj => {
|
||||
fsm.StopBgm();
|
||||
fsm.InteractionDown("媼潑國諳",null);
|
||||
fsm.InteractionDown("ʊ潑國諳", null);
|
||||
fsm.Unlight_DisableInteraction("媼潑國諳");
|
||||
fsm.Unlight_DisableInteraction("ʊ潑國諳");
|
||||
fsm.HideArrow();
|
||||
Game.Instance.eventManager.Raise(new PlayTrueOrFalseEvent() { isTrue = true });
|
||||
fsm.PlayClip("淏都菴珨陑秞2");
|
||||
ChatUI.Instance.SendAI("陑婄泭淖◎淏都陑秞◎淏都菴珨陑秞", null);
|
||||
fsm.ShowNextPanel(() => {
|
||||
ChatUI.Instance.CloseChatTxt();
|
||||
fsm.nextState = true;
|
||||
});
|
||||
});
|
||||
fsm.InteractionDown("ʊ潑國諳", obj => {
|
||||
fsm.StopBgm();
|
||||
fsm.InteractionDown("媼潑國諳", null);
|
||||
fsm.InteractionDown("ʊ潑國諳", null);
|
||||
fsm.Unlight_DisableInteraction("媼潑國諳");
|
||||
fsm.Unlight_DisableInteraction("ʊ潑國諳");
|
||||
fsm.HideArrow();
|
||||
Game.Instance.eventManager.Raise(new PlayTrueOrFalseEvent() { isTrue = true });
|
||||
fsm.PlayClip("淏都菴珨陑秞2");
|
||||
ChatUI.Instance.SendAI("陑婄泭淖◎淏都陑秞◎淏都菴珨陑秞", null);
|
||||
fsm.ShowNextPanel(() => {
|
||||
ChatUI.Instance.CloseChatTxt();
|
||||
fsm.nextState = true;
|
||||
});
|
||||
});
|
||||
//fsm.InteractionDown("媼潑國諳", obj => {
|
||||
// fsm.StopBgm();
|
||||
// fsm.InteractionDown("媼潑國諳",null);
|
||||
// fsm.InteractionDown("ʊ潑國諳", null);
|
||||
// fsm.Unlight_DisableInteraction("媼潑國諳");
|
||||
// fsm.Unlight_DisableInteraction("ʊ潑國諳");
|
||||
// fsm.HideArrow();
|
||||
// Game.Instance.eventManager.Raise(new PlayTrueOrFalseEvent() { isTrue = true });
|
||||
// fsm.PlayClip("淏都菴珨陑秞2");
|
||||
// ChatUI.Instance.SendAI("陑婄泭淖◎淏都陑秞◎淏都菴珨陑秞", null);
|
||||
// fsm.ShowNextPanel(() => {
|
||||
// ChatUI.Instance.CloseChatTxt();
|
||||
// fsm.nextState = true;
|
||||
// });
|
||||
//});
|
||||
//fsm.InteractionDown("ʊ潑國諳", obj => {
|
||||
// fsm.StopBgm();
|
||||
// fsm.InteractionDown("媼潑國諳", null);
|
||||
// fsm.InteractionDown("ʊ潑國諳", null);
|
||||
// fsm.Unlight_DisableInteraction("媼潑國諳");
|
||||
// fsm.Unlight_DisableInteraction("ʊ潑國諳");
|
||||
// fsm.HideArrow();
|
||||
// Game.Instance.eventManager.Raise(new PlayTrueOrFalseEvent() { isTrue = true });
|
||||
// fsm.PlayClip("淏都菴珨陑秞2");
|
||||
// ChatUI.Instance.SendAI("陑婄泭淖◎淏都陑秞◎淏都菴珨陑秞", null);
|
||||
// fsm.ShowNextPanel(() => {
|
||||
// ChatUI.Instance.CloseChatTxt();
|
||||
// fsm.nextState = true;
|
||||
// });
|
||||
//});
|
||||
}
|
||||
public override void OnStateStay()
|
||||
{
|
||||
base.OnStateStay();
|
||||
if (PositionValue == "1" || PositionValue == "2" || Input.GetKeyDown(KeyCode.L))
|
||||
{
|
||||
if (step)
|
||||
{
|
||||
step = false;
|
||||
fsm.StopBgm();
|
||||
//fsm.InteractionDown("媼潑國諳", null);
|
||||
//fsm.InteractionDown("ʊ潑國諳", null);
|
||||
fsm.Unlight_DisableInteraction("媼潑國諳");
|
||||
fsm.Unlight_DisableInteraction("ʊ潑國諳");
|
||||
fsm.HideArrow();
|
||||
Game.Instance.eventManager.Raise(new PlayTrueOrFalseEvent() { isTrue = true });
|
||||
fsm.PlayClip("淏都菴珨陑秞_泭淖け");
|
||||
ChatUI.Instance.SendAI("陑婄泭淖◎淏都陑秞◎淏都菴珨陑秞", null);
|
||||
fsm.ShowNextPanel(() =>
|
||||
{
|
||||
ChatUI.Instance.CloseChatTxt();
|
||||
fsm.nextState = true;
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public override void OnStateExit()
|
||||
{
|
||||
base.OnStateExit();
|
||||
fsm.StopClip("淏都菴珨陑秞2");
|
||||
step = false;
|
||||
fsm.StopClip("淏都菴珨陑秞_泭淖け");
|
||||
fsm.nextState = false;
|
||||
}
|
||||
}
|
||||
|
||||
@ -35,6 +35,7 @@ namespace YiLiao.XinFeiTingZhen
|
||||
public bool test;
|
||||
[HideInInspector]
|
||||
public SceneDataHandler sceneDataHandler;
|
||||
public SensorManager sensorManager;
|
||||
IEnumerator Start()
|
||||
{
|
||||
|
||||
|
||||
@ -1,5 +1,4 @@
|
||||
using System;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
using ZXKFramework;
|
||||
namespace YiLiao.XinFeiTingZhen
|
||||
@ -42,7 +41,7 @@ namespace YiLiao.XinFeiTingZhen
|
||||
if (MVC.GetModel<Main.GameModel>().modeType == ModeType.ShiXun && !string.IsNullOrEmpty(stepName))
|
||||
{
|
||||
subAction?.Invoke(false);
|
||||
ChatUI.Instance.SendAI("用户位于:"+ stepName + ",用户的作答为:" + txtSelectManagers[id].GetYourAnswer() + ",请告诉用户正确答案和解析,字数控制在120字以内。", null);
|
||||
//ChatUI.Instance.SendAI("用户位于:"+ stepName + ",用户的作答为:" + txtSelectManagers[id].GetYourAnswer() + ",请告诉用户正确答案和解析,字数控制在120字以内。", null);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
@ -818,7 +818,8 @@ PlayerSettings:
|
||||
gcIncremental: 0
|
||||
assemblyVersionValidation: 1
|
||||
gcWBarrierValidation: 0
|
||||
apiCompatibilityLevelPerPlatform: {}
|
||||
apiCompatibilityLevelPerPlatform:
|
||||
Standalone: 3
|
||||
m_RenderingPath: 1
|
||||
m_MobileRenderingPath: 1
|
||||
metroPackageName: com.unity.template-starter-kit
|
||||
|
||||
@ -1,5 +1,4 @@
|
||||
2025/09/29 15:17:42
|
||||
80580f9047ae7f4bd0325a05c2f5cdaa
|
||||
¹¨q°UP
|
||||
6"oÇ‘Nr‘ŽK:î1kü<6B>n!Å
|
||||
/lk%pG+g{*+0yùfâßSÅ©Ø1 ²'º“½¦HUÒhÀGßz“^Þ.²å:<3A>O¡Dƣ߸ÈG}xøŸŽ½4˜qTÒÊ.wrÄÕ”¦7ÕŸîá¬ÕÌKh]PÈ…‰…&M7÷¬²büæiù–0^<5E>ß
|
||||
2025/12/22 10:22:32
|
||||
3dea935fd3a1ead6af9393bb07c8f238
|
||||
ª¤tAuÂöÅkùv$(™jµ}ò<>§¤C×qÂ'“Oð+Â’‹Ê ²_3¶‰ÓZ;ñ •R¡Ò0_À„H
¦§æ¹}úÍág#_MIsõ{#Žl„E‡<45>zt#4Qó€â¦ìÓyB} K|žº»Á‘CŸÊËæå6’>À
Úò]醛&,ð
|
||||
_ž…}1Õ<31>‹™ì²»æEqs D<C2A0>#®=
|
||||
Loading…
x
Reference in New Issue
Block a user