From 26996daa11a8f1ed7e82ae3d501d450bbf3faf96 Mon Sep 17 00:00:00 2001 From: hejiayao <782841784@qq.com> Date: Thu, 9 Apr 2026 17:59:12 +0800 Subject: [PATCH] 1 --- Assets/StreamingAssets/info.ini | 2 +- .../TSQManager/EquipmentIIntroduction_TSQ.cs | 27 ++++++--------- .../TSQManager/EquipmentProcessExample_TSQ.cs | 34 ++++++++++++++++++- 3 files changed, 45 insertions(+), 18 deletions(-) diff --git a/Assets/StreamingAssets/info.ini b/Assets/StreamingAssets/info.ini index e305f4b..af5fa4e 100644 --- a/Assets/StreamingAssets/info.ini +++ b/Assets/StreamingAssets/info.ini @@ -1 +1 @@ -2026-04-09 15:04:24#'efficiencymanagement://31,56,118,1,3,1491816028567502848,eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6IjRjMDhjMTAyLTAxY2ItNDg5NS1iNjZjLWIzMDJkMmU4YzgyYSJ9.OdzdjH7kB7-NzSB0vQM_K90wUga7yr24hqau15l54rAwoSYMhMDpXTs6Gl9e_vEJqmG9FAvcOOe3mH4ae5Piog,&/#116;est1212,10001,172.16.1.135:8081,60'| \ No newline at end of file +2026-04-09 17:40:09#'efficiencymanagement://31,56,118,1,3,1491855224107696128,eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6IjdhZjBkZGRjLWYwNTItNGY5My04YjU5LTViYzI4ZmQ0MjY2MyJ9.rsd9IYB4lfb32egQ8aEcg9L00b0m-6uueWCGB3AhDt_po1c8lpu2j5l55wo2jiBxltDrzndZiBZASNXSJ8KykA,&/#116;est1212,10001,172.16.1.135:8081,60'| \ No newline at end of file diff --git a/Assets/Zion/Scripts/TSQManager/EquipmentIIntroduction_TSQ.cs b/Assets/Zion/Scripts/TSQManager/EquipmentIIntroduction_TSQ.cs index a1e1e83..5babdfb 100644 --- a/Assets/Zion/Scripts/TSQManager/EquipmentIIntroduction_TSQ.cs +++ b/Assets/Zion/Scripts/TSQManager/EquipmentIIntroduction_TSQ.cs @@ -13,7 +13,7 @@ public class EquipmentIIntroduction_TSQ : MonoBehaviour public List taskStep = new List(); public int firstStep = 0; public int secondStep = 0; - private int currentStep; + public int currentStep; public bool currentState; void Awake() { @@ -21,11 +21,13 @@ public class EquipmentIIntroduction_TSQ : MonoBehaviour currentStep = firstStep; taskStep.Add(new TaskStep { StepId = firstStep, Description = "开启" + transform.name }); taskStep.Add(new TaskStep { StepId = secondStep, Description = "关闭" + transform.name }); + } void OnMouseDown() { if (EventSystem.current.IsPointerOverGameObject()) return; + EquipmentProcessExample_TSQ.Instance.currentEquipment = this; switch (gameObject.name) { case "冷却塔风机1": @@ -62,7 +64,7 @@ public class EquipmentIIntroduction_TSQ : MonoBehaviour if (EquipmentProcessExample_TSQ.Instance._expectStepIndex > EquipmentProcessExample_TSQ.Instance.EquipmentProcess_Task.Steps.Count) return; bool isError = currentStep != EquipmentProcessExample_TSQ.Instance._expectStepIndex; TaskManager.Instance.ReportCurrentStepResult(isError); - ScoreManager.Instance?.GetScoreBaseBySchemeID(GameManager.RunModelMgr.schemeID).steps[EquipmentProcessExample_TSQ.Instance._expectStepIndex].SetScore(!isError); + ScoreManager.Instance.GetScoreBaseBySchemeID(GameManager.RunModelMgr.schemeID).steps[EquipmentProcessExample_TSQ.Instance._expectStepIndex].SetScore(!isError); EquipmentProcessExample_TSQ.Instance._expectStepIndex++; currentStep = secondStep; currentState = state; @@ -77,8 +79,6 @@ public class EquipmentIIntroduction_TSQ : MonoBehaviour UIView.Get().variables.Get("开启冷却塔风机Text1").text = "开启冷却塔风机1"; UIView.Get().variables.Get("参数面板-冷却塔风机1").Activate(); - UIView.Get().variables.Get