This commit is contained in:
王建超 2025-09-28 17:21:01 +08:00
parent 637369910b
commit 8766b561c0
80 changed files with 15244 additions and 21560 deletions

View File

@ -40,8 +40,8 @@ Material:
- _Speed: 0
m_Colors:
- _Color: {r: 0.078431375, g: 0.5254902, b: 0.9176471, a: 1}
- _Color1: {r: 1, g: 1, b: 1, a: 1}
- _Color2: {r: 1, g: 1, b: 1, a: 1}
- _Color1: {r: 0, g: 0, b: 0, a: 1}
- _Color2: {r: 0, g: 0, b: 0, a: 1}
- _Emission: {r: 0, g: 1, b: 0.9362297, a: 0}
m_BuildTextureStacks: []
--- !u!114 &2168536711152466239

Binary file not shown.

Before

Width:  |  Height:  |  Size: 31 KiB

After

Width:  |  Height:  |  Size: 180 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 48 KiB

After

Width:  |  Height:  |  Size: 232 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 43 KiB

After

Width:  |  Height:  |  Size: 517 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 48 KiB

After

Width:  |  Height:  |  Size: 284 KiB

View File

@ -0,0 +1,178 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!114 &-3441295278760508505
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_Markers:
m_Objects: []
m_PostPlaybackState: 1
--- !u!114 &-1867502621407329280
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: 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: "\u542C\u8BCA\u68C0\u67E5"
m_EditorClassIdentifier:
m_Version: 0
m_Tracks:
- {fileID: -3441295278760508505}
- {fileID: 1434470043208284979}
- {fileID: -1867502621407329280}
m_FixedDuration: 0
m_EditorSettings:
m_Framerate: 60
m_ScenePreview: 1
m_DurationMode: 0
m_MarkerTrack: {fileID: 0}
--- !u!114 &1434470043208284979
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_Version: 1
m_Start: 0
m_ClipIn: 0
m_Asset: {fileID: 2169788153330923413}
m_Duration: 0.5
m_TimeScale: 1
m_ParentTrack: {fileID: 1434470043208284979}
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: 0
--- !u!114 &2169788153330923413
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
m_EditorClassIdentifier:

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: 34892c6c4d4a71c4c89ddeb039eb2399
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:

View 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: "\u542C\u8BCA\u68C0\u67E52"
m_EditorClassIdentifier:
m_Version: 0
m_Tracks:
- {fileID: 3931032022766537606}
m_FixedDuration: 0
m_EditorSettings:
m_Framerate: 60
m_ScenePreview: 1
m_DurationMode: 0
m_MarkerTrack: {fileID: 0}
--- !u!114 &3931032022766537606
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: 8400309628598945673}
m_Duration: 54.778775510204085
m_TimeScale: 1
m_ParentTrack: {fileID: 3931032022766537606}
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: "\u4E2D\u6E7F\u7F57\u97F3"
m_Markers:
m_Objects: []
m_TrackProperties:
volume: 1
stereoPan: 0
spatialBlend: 0
--- !u!114 &8400309628598945673
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: 70b1c81b6a2b8d34b97e96c2a7ac9e9b, type: 3}
m_Loop: 0
m_bufferingTime: 0.1
m_ClipProperties:
volume: 1

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: aed527a87c06cac4d9d2beee963df9ae
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,72 @@
%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: "\u75C5\u4F8B1\u75C5\u4F8B\u4FE1\u606F"
m_EditorClassIdentifier:
m_Version: 0
m_Tracks:
- {fileID: 3184287025639498016}
- {fileID: 1857255018844218673}
m_FixedDuration: 0
m_EditorSettings:
m_Framerate: 60
m_ScenePreview: 1
m_DurationMode: 0
m_MarkerTrack: {fileID: 0}
--- !u!114 &1857255018844218673
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 &3184287025639498016
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_Markers:
m_Objects: []
m_PostPlaybackState: 0

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: d6ecd3a676fea424b85d3c61741e8018
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 11400000
userData:
assetBundleName:
assetBundleVariant:

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 1ca5f42dde94ff7439de1d96640f4134
guid: 97ea27e91b563fa40a3f9780d0393bcf
DefaultImporter:
externalObjects: {}
userData:

File diff suppressed because one or more lines are too long

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 708425901b7b75b4ba0081ec19529807
guid: 0d44eb40a6ee2d145a4078c48391fbd1
DefaultImporter:
externalObjects: {}
userData:

File diff suppressed because one or more lines are too long

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: 53154354f6d202a48b087479dda4b8ad
guid: 5da5b5d98402b424c8c6f2a21968284d
DefaultImporter:
externalObjects: {}
userData:

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,7 +0,0 @@
fileFormatVersion: 2
guid: 079f003f296130b48a8968216b7151df
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

File diff suppressed because one or more lines are too long

View File

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

File diff suppressed because one or more lines are too long

View File

@ -1,7 +0,0 @@
fileFormatVersion: 2
guid: 6fb8e3c81a639bc4eb01328ca3b9d96d
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

File diff suppressed because one or more lines are too long

View File

@ -1,7 +0,0 @@
fileFormatVersion: 2
guid: add70aefcb8a2a1438e774f7a540df58
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

File diff suppressed because one or more lines are too long

View File

@ -1,7 +0,0 @@
fileFormatVersion: 2
guid: 927a8354fd011b348b43737b8778732a
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

File diff suppressed because one or more lines are too long

View File

@ -1,7 +0,0 @@
fileFormatVersion: 2
guid: c617716c197b753489eb4ba403352610
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

File diff suppressed because one or more lines are too long

View File

@ -1,7 +0,0 @@
fileFormatVersion: 2
guid: 42665eb97c2ddbd4f88ffe153060c178
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

File diff suppressed because one or more lines are too long

View File

@ -1,7 +0,0 @@
fileFormatVersion: 2
guid: a5e376044da7e704182538d92d941820
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

File diff suppressed because one or more lines are too long

View File

@ -1,5 +1,5 @@
fileFormatVersion: 2
guid: ed9ea561af9ae7947b4c69faa4ff7606
guid: c28952d69e187634da8446b7aa539836
DefaultImporter:
externalObjects: {}
userData:

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,7 +0,0 @@
fileFormatVersion: 2
guid: 28160c1aeffe0d94d90f71f235c1aef6
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

File diff suppressed because one or more lines are too long

View File

@ -1,7 +0,0 @@
fileFormatVersion: 2
guid: 18198d02100fbf849bc404c7c3945fc8
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

File diff suppressed because one or more lines are too long

View File

@ -1,7 +0,0 @@
fileFormatVersion: 2
guid: 1537fb4f663ba2e4ab98343b016dc834
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

File diff suppressed because one or more lines are too long

View File

@ -1,7 +0,0 @@
fileFormatVersion: 2
guid: 23f67cf565ebbc842a71bf36ac9ef453
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: b98bac2634ab0b04e8bf2626dd2ff8a3
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

File diff suppressed because one or more lines are too long

View File

@ -1,7 +0,0 @@
fileFormatVersion: 2
guid: d48c52da1dd3de24898085572e87ec46
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -1,7 +0,0 @@
fileFormatVersion: 2
guid: 794de58022e5b264f8e61e04b625f1b4
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

File diff suppressed because one or more lines are too long

View File

@ -73,7 +73,7 @@ namespace SuperTreeView
{
if (TextHover.gameObject.activeSelf || TextSelect.gameObject.activeSelf)
{
TextHoverLock.gameObject.SetActive(true);
//TextHoverLock.gameObject.SetActive(true);
}
else
{

File diff suppressed because it is too large Load Diff

View File

@ -20,13 +20,13 @@ namespace YiLiao.Main
gameModel = MVC.GetModel<GameModel>();
//Game.Instance.uiManager.ShowUI<TimeCheckerPanel>();
#if UNITY_EDITOR //在编辑器模式下
#else
if (!File.Exists(Path.GetFullPath(Path.Combine(Application.dataPath, @"../../", "encryptedData.txt"))))
{
Game.Instance.uiManager.ShowUI<LoadingPanel>();
}
#endif
//#if UNITY_EDITOR //在编辑器模式下
//#else
// if (!File.Exists(Path.GetFullPath(Path.Combine(Application.dataPath, @"../../", "encryptedData.txt"))))
// {
// Game.Instance.uiManager.ShowUI<LoadingPanel>();
// }
//#endif
}
public override void OnEnter(params object[] obj)
{

View File

@ -194,12 +194,14 @@ namespace YiLiao.XinFeiTingZhen
{
float t = GetClipLength(value);
if (t > 0.1f) GameManager.Instance.uiManager.GetUI<TreeViewPanel>().LockAllBtn();
if (t > 0.1f) GameManager.Instance.uiManager.GetUI<TreeViewPanel2>().LockAllBtn();
GameManager.Instance.timelineManager.PlayNormalClip(value);
if (Game.Instance)
{
if (coroutine != null) Game.Instance.IEnumeratorManager.Stop(coroutine);
coroutine = Game.Instance.IEnumeratorManager.Run(WaitExecute(t, () => {
GameManager.Instance.uiManager.GetUI<TreeViewPanel>().UnLockAllBtn();
GameManager.Instance.uiManager.GetUI<TreeViewPanel2>().UnLockAllBtn();
callBack?.Invoke();
}));
}
@ -266,10 +268,10 @@ namespace YiLiao.XinFeiTingZhen
}
};
}
public void ShowImgQuestion(int id, int scoreId, int score, Action nextFun)
public void ShowImgQuestion(string stepName, int id, int scoreId, int score, Action nextFun)
{
ImgSelectQuestionPanel imgSelectQuestionPanel = GameManager.Instance.uiManager.GetUI<ImgSelectQuestionPanel>();
imgSelectQuestionPanel.ShowImgQuestion(id);
imgSelectQuestionPanel.ShowImgQuestion(stepName, id);
imgSelectQuestionPanel.nextAction = nextFun;
imgSelectQuestionPanel.subAction = isTrue => {
if (isTrue)

View File

@ -6,14 +6,19 @@ namespace YiLiao.XinFeiTingZhen
public override void OnStateEnter()
{
base.OnStateEnter();
fsm.PlayBgm(0, true);
fsm.ShowTip(0, true);
fsm.PlayClip("病例1病例信息");
fsm.ShowNextPanel(() => {
fsm.StopBgm();
fsm.nextState = true;
});
}
public override void OnStateStay()
{
base.OnStateStay();
}
public override void OnStateExit()
{
base.OnStateExit();
fsm.nextState = false;
}
}
}

View File

@ -6,14 +6,14 @@ namespace YiLiao.XinFeiTingZhen
public override void OnStateEnter()
{
base.OnStateEnter();
}
public override void OnStateStay()
{
base.OnStateStay();
fsm.ShowTxtQuestion("病例一》初步诊断", 16, 0, 5, () => {
fsm.nextState = true;
});
}
public override void OnStateExit()
{
base.OnStateExit();
fsm.nextState = false;
}
}
}

View File

@ -1,4 +1,5 @@
using FSM;
using UnityEngine;
using ZXKFramework;
namespace YiLiao.XinFeiTingZhen
{
@ -36,6 +37,7 @@ namespace YiLiao.XinFeiTingZhen
}
if (MVC.GetModel<Main.GameModel>().modeType == ModeType.KaoHe)
{
GameObject.Find("ChatAI/AICanvas").SetActive(false);
LLM llm = ChatAI.Instance.m_ChatSettings.m_ChatModel;
ChatZxkAI chatZxkAI = llm as ChatZxkAI;
chatZxkAI.mode = "¿¼ºËģʽ";

View File

@ -6,14 +6,36 @@ namespace YiLiao.XinFeiTingZhen
public override void OnStateEnter()
{
base.OnStateEnter();
fsm.ShowImgQuestion("病例一》听诊检查》步骤1",0, 0, 5, () => {
fsm.ShowTip(0, true);
fsm.PlayBgm(0, true);
fsm.PlayClip("病例1听诊检查");
fsm.ShowTipBtn(() => {
fsm.Light_EnableInteraction("SM_huxi", true);
fsm.ShowArrow("请将听诊头放置在犬的该区域进行听诊检查", "肺部听诊点", false, 0, 3, 25, null, true);
}, 0);
});
fsm.InteractionDown("SM_huxi", obj => {
fsm.HideTipBtn();
fsm.HideArrow();
fsm.AddScore(1, 5);
fsm.InteractionDown("SM_huxi", null);
fsm.Unlight_DisableInteraction("SM_huxi");
fsm.PlayClip("病例1听诊检查2");
fsm.ShowNextPanel(() => {
fsm.StopClip("病例1听诊检查2");
fsm.ShowTxtQuestion("病例一》听诊检查》步骤2", 15, 2, 5, () => {
fsm.nextState = true;
});
});
});
}
public override void OnStateStay()
{
base.OnStateStay();
}
public override void OnStateExit()
{
base.OnStateExit();
fsm.StopClip("病例1听诊检查2");
fsm.nextState = false;
}
}
}

View File

@ -10,11 +10,11 @@ namespace YiLiao.XinFeiTingZhen
base.OnStateEnter();
fsm.PlayBgm(0);
fsm.ShowTip(0);
Debug.Log("听诊心音方法2");
fsm.PlayClip("听诊心音方法2");
fsm.ShowArrow("请点击犬的左前肢向前牵引半步", "左前肢", false, 0, 3);
fsm.Show_Light_EnableInteraction("左前肢");
fsm.InteractionDown("左前肢", obj => {
fsm.HideArrow();
Game.Instance.eventManager.Raise(new PlayTrueOrFalseEvent() { isTrue = true });
fsm.InteractionDown("左前肢", null);
fsm.Hide_Unlight_DisableInteraction("左前肢");

View File

@ -6,14 +6,15 @@ namespace YiLiao.XinFeiTingZhen
public override void OnStateEnter()
{
base.OnStateEnter();
fsm.ShowTxtQuestion("病例一》诊断进阶", 17, 0, 7, () => {
fsm.nextState = true;
});
}
public override void OnStateStay()
{
base.OnStateStay();
}
public override void OnStateExit()
{
base.OnStateExit();
fsm.nextState = false;
}
}
}

View File

@ -9,7 +9,6 @@ namespace YiLiao.XinFeiTingZhen
{
TxtOption[] txtOptions;
public TxtOption[] answers;
public string names;
public void Init()
{
txtOptions = GetComponentsInChildren<TxtOption>();

View File

@ -43,6 +43,7 @@ namespace YiLiao.XinFeiTingZhen
if (MVC.GetModel<Main.GameModel>().modeType == ModeType.ShiXun)
{
ChatUI.Instance.SendAI(stepName + ",用户的答案为" + drags[id].GetYourAnswer() + ",请对用户的答案做解析,并介绍本步骤的答案和意义,字数控制在120字内。", null);
subAction?.Invoke(false);
}
else
{

View File

@ -13,8 +13,9 @@ namespace YiLiao.XinFeiTingZhen
ImgSelectManager[] imgSelectManagers;
Button nextBtn;
Button subBtn;
Button resetBtn;
//Button resetBtn;
int id;
string stepName;
public override void Init(IUIManager uictrl)
{
base.Init(uictrl);
@ -23,8 +24,8 @@ namespace YiLiao.XinFeiTingZhen
nextBtn.onClick.AddListener(Next);
subBtn = transform.FindFirst<Button>("Submit");
subBtn.onClick.AddListener(Submit);
resetBtn = transform.FindFirst<Button>("Reset");
resetBtn.onClick.AddListener(Reset);
//resetBtn = transform.FindFirst<Button>("Reset");
//resetBtn.onClick.AddListener(Reset);
}
private void Submit()
{
@ -37,18 +38,28 @@ namespace YiLiao.XinFeiTingZhen
else
{
Game.Instance.eventManager.Raise(new PlayTrueOrFalseEvent() { isTrue = false });
subAction?.Invoke(false);
if (MVC.GetModel<Main.GameModel>().modeType == ModeType.ShiXun && string.IsNullOrEmpty(stepName))
{
subAction?.Invoke(false);
ChatUI.Instance.SendAI("用户位于:" + stepName + ",用户的作答为:" + imgSelectManagers[id].GetYourAnswer() + ",请告诉用户正确答案和解析,字数控制在120字以内。", null);
}
else
{
subAction?.Invoke(false);
}
}
subBtn.interactable = false;
resetBtn.interactable = false;
//subBtn.interactable = false;
subBtn.gameObject.SetActive(false);
//resetBtn.interactable = false;
nextBtn.gameObject.SetActive(true);
}
private void Next()
{
SetActive(false);
subBtn.interactable = true;
resetBtn.interactable = true;
subBtn.gameObject.SetActive(true);
//resetBtn.interactable = true;
nextAction?.Invoke();
stepName = "";
}
private void Reset()
{
@ -65,12 +76,14 @@ namespace YiLiao.XinFeiTingZhen
}
}
}
public void ShowImgQuestion(int id)
public void ShowImgQuestion(string stepName, int id)
{
this.stepName = stepName;
SetActive(true);
nextBtn.gameObject.SetActive(false);
subBtn.interactable = true;
resetBtn.interactable = true;
subBtn.gameObject.SetActive(true);
//subBtn.interactable = true;
//resetBtn.interactable = true;
this.id = id;
for (int i = 0; i < imgSelectManagers.Length; i++)
{

View File

@ -11,7 +11,7 @@ namespace YiLiao.XinFeiTingZhen
public Action nextAction;
public Action<bool> subAction;
public TxtSelectManager[] txtSelectManagers;
TxtSelectManager[] txtSelectManagers;
Button nextBtn;
Button subBtn;
int id;
@ -20,6 +20,10 @@ namespace YiLiao.XinFeiTingZhen
{
base.Init(uictrl);
txtSelectManagers = GetComponentsInChildren<TxtSelectManager>(true);
for (int i = 0; i < txtSelectManagers.Length; i++)
{
txtSelectManagers[i].Init();
}
nextBtn = transform.FindFirst<Button>("Next");
nextBtn.onClick.AddListener(Next);
subBtn = transform.FindFirst<Button>("Submit");
@ -35,8 +39,9 @@ namespace YiLiao.XinFeiTingZhen
else
{
Game.Instance.eventManager.Raise(new PlayTrueOrFalseEvent() { isTrue = false });
if (MVC.GetModel<Main.GameModel>().modeType == ModeType.ShiXun)
if (MVC.GetModel<Main.GameModel>().modeType == ModeType.ShiXun && string.IsNullOrEmpty(stepName))
{
subAction?.Invoke(false);
ChatUI.Instance.SendAI("用户位于:"+ stepName + ",用户的作答为:" + txtSelectManagers[id].GetYourAnswer() + ",请告诉用户正确答案和解析,字数控制在120字以内。", null);
}
else
@ -54,6 +59,7 @@ namespace YiLiao.XinFeiTingZhen
subBtn.gameObject.SetActive(true);
nextBtn.gameObject.SetActive(false);
nextAction?.Invoke();
stepName = null;
}
public void ShowImgQuestion(int id, string stepName)
{
@ -63,16 +69,9 @@ namespace YiLiao.XinFeiTingZhen
for (int i = 0; i < txtSelectManagers.Length; i++)
{
if (i == id)
{
txtSelectManagers[i].gameObject.SetActive(true);
txtSelectManagers[i].Init();
}
else
{
txtSelectManagers[i].gameObject.SetActive(false);
}
txtSelectManagers[i].gameObject.SetActive(false);
}
txtSelectManagers[id].gameObject.SetActive(true);
}
}
}

View File

@ -1,7 +1,5 @@
2025/09/26 17:28:22
2025/09/28 17:16:55
80580f9047ae7f4bd0325a05c2f5cdaa
X8wغtAd>•0ˆ¼]ش®ل%÷LPn¹¤];BKڈ¦ش•ûپ)!ٍJüV ُة}اع+.8بطGوٌà#.¬GïâڑزIٍ
}T¤اB خہ@µطeژgءér¨ˆs8{NJµُë
^zfIkRh©ج`S
Z
u²(91وا® `r …?{t
ò*ØIóÆ wâ¯Ô¬Ôgá;HÖÑs¶Ť¶kË¥{-o‡ÜîœÀ‰êör)ßLCi7^-±úž>Îûû‰˜PD7ïfˆ |¬à¿X'—̤ |
¦£Ô°ïo‡w6‡®åN¿{Jµ¾Ë<C2BE>Ô&Bä#<#»
BChå0"U”È >åŒðû­&€?®Y\