From c01b55806fbe5e04f14009bb8d3f498c53386355 Mon Sep 17 00:00:00 2001 From: bottlefish <781230111@qq.com> Date: Fri, 15 Nov 2024 01:20:32 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E4=BA=86=E6=8F=92=E5=A4=B4?= =?UTF-8?q?=E7=9A=84=E5=8A=9F=E8=83=BD=EF=BC=8C=E5=A2=9E=E5=8A=A0=E4=BA=86?= =?UTF-8?q?=E6=8F=92=E5=A4=B4=E8=A7=A6=E5=8F=91=E5=AF=B9=E8=AF=9D=EF=BC=8C?= =?UTF-8?q?=E4=BF=9D=E9=99=A9=E8=B5=B7=E8=A7=81=E5=8F=AA=E8=A7=A6=E5=8F=91?= =?UTF-8?q?=E4=B8=80=E6=AC=A1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Resources/Yarn/PeipeiNew/PeipeiNew.yarn | 121 +++++++++++++----- .../Resources/Yarn/PeipeiNew2/PeipeiNew2.yarn | 93 +++++++++----- Assets/Scripts/FixSystem/Cable/Plug.cs | 4 +- .../FixSystem/Scope/OscilloscopeController.cs | 19 ++- 4 files changed, 169 insertions(+), 68 deletions(-) diff --git a/Assets/Resources/Yarn/PeipeiNew/PeipeiNew.yarn b/Assets/Resources/Yarn/PeipeiNew/PeipeiNew.yarn index 50443eb76..9ffff5817 100644 --- a/Assets/Resources/Yarn/PeipeiNew/PeipeiNew.yarn +++ b/Assets/Resources/Yarn/PeipeiNew/PeipeiNew.yarn @@ -71,6 +71,7 @@ position: 241,-2149 //是否已经见过UF <> //是否已知:为什么要使用UF +<> <> //是否已知:色觉芯片是缺失的 <> @@ -89,11 +90,49 @@ position: 241,-2149 //clueboard相关 <> <> + + + +//插线 +<> +<> +<> <> + === +title: PlugInsert +tags: 待编辑 +colorID: 8 +position: -227,-2451 +--- +<> +<> +<> +<> + <> + <> + <> + <> + <> + <> + <> + <> + <> + <> + <> + <> + <> + <> + <> + <> + <> + <> + <> + <> +<> - +=== title: 引入对话 tags: @@ -347,8 +386,13 @@ position: -1098,-2867 title: 主维修界面 tags: colorID: 3 -position: 244,-601 +position: 246,-601 --- +<2>> + <> + <> + <> +<> // //<> <> <> @@ -1372,7 +1416,11 @@ tags: colorID: 8 position: 240,-2960 --- +<> 记忆模块运转状况良好 +<> + + === @@ -1381,7 +1429,7 @@ position: 240,-2960 title: UfViewDialogue tags: colorID: 8 -position: 27,-1752 +position: -69,-2183 --- //第一次看 <> @@ -1453,8 +1501,10 @@ position: 480,-2760 --- //第一次看 <> + <> me: 这就是佩佩的视觉模块了。 me: 美工的眼睛,一定很珍贵吧。 + <> <> < 1.5>> me: 但是工作上她并不是真正地在画画… @@ -1464,39 +1514,40 @@ position: 480,-2760 me: 所以才导致她持续性的眼睛干涩吧。 <> <> -//探测到缺陷后 -<> - <> - me:我刚才看错了吗?佩佩的视觉里… - me: 不对不对…得再回去看看。 - <> - me: 探针在视觉模块找到了缺陷…… - <> - me: 佩佩也自述长期眼睛酸涩…看来这个问题存在很久了。 - <> - <> - me: 这会和色觉晶圆的缺失有关系吗? - <> - < 1.5>> - me: 可是佩佩不是用UF绘图的吗? - me: 理论上不应该有那么重的视觉模块负担才对啊…… - <> - me: 这会和UF模块有关系吗? - <> - me: 看来美工的工作并不轻松啊。 - <> - <> - me: 总之…深入检查一下吧。 - <> -//深度完成后 -<> - me: 谁能想到一个创造色彩的美工,自己竟然是看不见颜色的… - <> - me: 可这是为什么呢? - <> -<> - me: 可惜…连最后一点颜色也没能保住。 <> +// //探测到缺陷后 +// <> +// <> +// me:我刚才看错了吗?佩佩的视觉里… +// me: 不对不对…得再回去看看。 +// <> +// me: 探针在视觉模块找到了缺陷…… +// <> +// me: 佩佩也自述长期眼睛酸涩…看来这个问题存在很久了。 +// <> +// <> +// me: 这会和色觉晶圆的缺失有关系吗? +// <> +// < 1.5>> +// me: 可是佩佩不是用UF绘图的吗? +// me: 理论上不应该有那么重的视觉模块负担才对啊…… +// <> +// me: 这会和UF模块有关系吗? +// <> +// me: 看来美工的工作并不轻松啊。 +// <> +// <> +// me: 总之…深入检查一下吧。 +// <> +// //深度完成后 +// <> +// me: 谁能想到一个创造色彩的美工,自己竟然是看不见颜色的… +// <> +// me: 可这是为什么呢? +// <> +// <> +// me: 可惜…连最后一点颜色也没能保住。 +// <> === diff --git a/Assets/Resources/Yarn/PeipeiNew2/PeipeiNew2.yarn b/Assets/Resources/Yarn/PeipeiNew2/PeipeiNew2.yarn index 757bc48b5..ff3fdaf0e 100644 --- a/Assets/Resources/Yarn/PeipeiNew2/PeipeiNew2.yarn +++ b/Assets/Resources/Yarn/PeipeiNew2/PeipeiNew2.yarn @@ -104,6 +104,14 @@ position: 240,-2040 <> <> + + + +//插线 +<> +<> +<> + <> === @@ -254,7 +262,7 @@ me: 事不宜迟,开始诊疗吧。 title: 诊断初始化 tags: colorID: 3 -position: 240,-1332 +position: 240,-1335 --- <> <> @@ -306,8 +314,12 @@ tags: colorID: 3 position: 238,-429 --- +<1>> + <> + <> + <> +<> <> - Debug在stage0 <> <> @@ -327,7 +339,6 @@ position: 238,-429 // <> // <> <> - 在stage1 <> me: 又发热了? me: 再次降温吧 @@ -338,7 +349,6 @@ position: 238,-429 <> <> - Debug在stage2 // <> // me: UF到底把信息传递给了谁? // me: 最好再检查一下各个模块。 @@ -363,12 +373,10 @@ position: 238,-429 <> <> <> -Debug在stage3 //准备尝试停止想象 <> me: 我不应该允许她这么做的…赶紧降温! -Debug在stage4 //拆除UF前尝试降温 <> <> @@ -376,7 +384,6 @@ Debug在stage4 <> <> - Debug在stage5 //<> // me: 温度应该降下来了 // 【检查确认】 @@ -388,13 +395,11 @@ Debug在stage4 //拆除UF <> - Debug在stage6 <> //第二次进clueboard //TODO-理论上应该还是在同一个Clueboard处理? <> - Debug在stage7 <> <> <> @@ -904,7 +909,7 @@ me:这里似乎没什么新的症状可收集了 title: EmoViewDialogue tags: 待编辑 colorID: 8 -position: 0,-3040 +position: -2,-3039 --- //待编辑 受到发热的影响,佩佩的情绪非常焦躁 @@ -924,6 +929,7 @@ colorID: 8 position: 480,-3040 --- //待编辑 + 受到发热的影响,佩佩有点神智不清 === title: ChipViewDialogue @@ -931,16 +937,16 @@ tags: 待编辑 colorID: 8 position: 240,-2840 --- -//待编辑 -佩佩很焦虑,不知道该怎么办了 +待编辑 +//佩佩很焦虑,不知道该怎么办了 === title: MemViewDialogue tags: 待编辑 colorID: 8 -position: 240,-3040 +position: 239,-3038 --- -//待编辑 -总体表现:对工作的焦虑、虚弱的身体状态 +待编辑 +//总体表现:对工作的焦虑、虚弱的身体状态 === title: UfViewDialogue tags: 待编辑 @@ -976,6 +982,9 @@ tags: 待编辑 colorID: 8 position: 992,-1578 --- +<> +<> +<> <> <> <> @@ -997,6 +1006,32 @@ position: 992,-1578 <> <> <> + +<> + <> + <> + <> + <> + <> + <> + <> + <> + <> + <> + <> + <> + <> + <> + <> + <> + <> + <> + <> + <> + <> + <> +<> + === title: EnterRepairMode tags: 待编辑 @@ -1042,7 +1077,7 @@ position: -515,-1156 title: 第一次降温 tags: colorID: 8 -position: 1385,-1179 +position: 1379,-1199 --- //<> <> @@ -1122,12 +1157,12 @@ me: 直接UF拆开来进行内部检查…或者继续找找线索。 title: 存档1 tags: colorID: 6 -position: 1382,-1464 +position: 1769,-1106 --- //TODO-等发热检测和降温拆开之后,这里改为仅用作降温完毕的对话 -<> +//<> <> -<> +<> ->拆开UF <> 管不了那么多了…来吧。 @@ -1623,7 +1658,7 @@ peipei: 忽然感觉头晕 title: EGCViewDialogue tags: colorID: 8 -position: 1160,-3040 +position: 1170,-3043 --- //检视心率仪时的对话 === @@ -1668,15 +1703,15 @@ position: 995,-1287 <> // ->开始降温 // <> -<> -//TODO-理论上这里只有插不同的模块才会弹出对话,但不知道怎么做——应该取决于降温工具怎么呼出 -//TODO-现在是把检测温度和降温放在一起做的,之后要拆开 - me: 果然,其他模块也无法正常工作……应该是引起了主板的过热。 - me: 看来只有把温度降下来才能继续检查。 - ->开始降温 - <> - ->继续检查 - <> +// <> +// //TODO-理论上这里只有插不同的模块才会弹出对话,但不知道怎么做——应该取决于降温工具怎么呼出 +// //TODO-现在是把检测温度和降温放在一起做的,之后要拆开 +// me: 果然,其他模块也无法正常工作……应该是引起了主板的过热。 +// me: 看来只有把温度降下来才能继续检查。 +// ->开始降温 +// <> +// ->继续检查 +// <> <> === // title: 过热时插线的对话_2 diff --git a/Assets/Scripts/FixSystem/Cable/Plug.cs b/Assets/Scripts/FixSystem/Cable/Plug.cs index 3e6f4bd7b..793f5e1ff 100644 --- a/Assets/Scripts/FixSystem/Cable/Plug.cs +++ b/Assets/Scripts/FixSystem/Cable/Plug.cs @@ -183,7 +183,7 @@ public class Plug : MonoBehaviour, IDragHandler, IPointerDownHandler, IPointerUp { currentSocket = closestSocket; currentSocket.InsertPlug(this); - initialSocket.InsertPlug(this); + //initialSocket.InsertPlug(this); OnPlugInserted?.Invoke(this); // 触发插入事件 transform.position = currentSocket.GetPosition(); plugSprite.enabled = false; @@ -196,7 +196,7 @@ public class Plug : MonoBehaviour, IDragHandler, IPointerDownHandler, IPointerUp { //transform.rotation = startRotation; initialSocket.InsertPlug(this); - OnPlugInserted?.Invoke(this); // 触发插入事件 + //OnPlugInserted?.Invoke(this); // 触发插入事件 plugSprite.enabled =false; // Make the plug sprite disappear when it is inserted into the initial socket. }); } diff --git a/Assets/Scripts/FixSystem/Scope/OscilloscopeController.cs b/Assets/Scripts/FixSystem/Scope/OscilloscopeController.cs index 533ea7acf..8bce63ea5 100644 --- a/Assets/Scripts/FixSystem/Scope/OscilloscopeController.cs +++ b/Assets/Scripts/FixSystem/Scope/OscilloscopeController.cs @@ -123,7 +123,9 @@ public class OscilloscopeController : MonoBehaviour } private void HandlePlugInserted(Plug plug) { - DialogController.Instance.SetVariable("$currentSocket",plug.currentSocket.name); + string originalString = plug.currentSocket.name; + string trimmedString = originalString.Replace("Socket", ""); + DialogController.Instance.SetVariable("$currentSocket",trimmedString); DialogController.Instance.StartDialogNode("PlugInsert"); // 这里可以处理插入后的波形显示逻辑 Debug.Log("Plug inserted into the socket, starting waveform display."); @@ -341,10 +343,23 @@ private IEnumerator ScanForError(string trimmedString) if(targetData.HasExternalError()) { - screenText.text="外部错误已关联,可以直接深入"; + screenText.text="记忆模块,允许直接进入"; //waveformVisualizer.gameObject.SetActive(false); return; } + else if(currentSocket.targetData.isCorrect) + { + string originalString = currentSocket.name; + string trimmedString = originalString.Replace("Socket", ""); + screenText.text=trimmedString+ ":未检测到错误"; + return; + } + else if(!currentSocket.targetData.isCorrect) + { + string originalString = currentSocket.name; + string trimmedString = originalString.Replace("Socket", ""); + screenText.text=trimmedString+ ":检测到异常,请寻找错误深入"; + } if(!setInitSliderValue) {