From c19fe284256d8004aa88223e2ae7fbf7bd714932 Mon Sep 17 00:00:00 2001 From: huqibin <762612145@qq.com> Date: Wed, 28 May 2025 17:22:02 +0800 Subject: [PATCH] =?UTF-8?q?=E9=AB=98=E4=BA=AE=E6=8F=90=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../CXX/StepState/2002/StepState_2002.cs | 20 ++++++++++++++++++- .../科目/10002/10002_2002_计量装置轮换.xml | 4 ++-- 2 files changed, 21 insertions(+), 3 deletions(-) diff --git a/Assets/Scripts/CXX/StepState/2002/StepState_2002.cs b/Assets/Scripts/CXX/StepState/2002/StepState_2002.cs index 3b9107a..93bda95 100644 --- a/Assets/Scripts/CXX/StepState/2002/StepState_2002.cs +++ b/Assets/Scripts/CXX/StepState/2002/StepState_2002.cs @@ -47,6 +47,16 @@ public class StepState_2002 : StepState else if (num == 2) { //ԤԼ + SorghumController[] sorghumControllers = GameObject.FindObjectsOfType(); + foreach (var item in sorghumControllers) + { + if (item.State == SorghumState.Healthy) + { + item.triggerName = "_1"; + break; + } + + } //OfficeManager.Instance.mobileController.downIndex = 1; } @@ -54,7 +64,15 @@ public class StepState_2002 : StepState { //ԤԼ //OfficeManager.Instance.mobileController.downIndex = 1; - + SorghumController[] sorghumControllers = GameObject.FindObjectsOfType(); + foreach (var item in sorghumControllers) + { + if (item.State == SorghumState.Diseased) + { + item.triggerName = "_1"; + break; + } + } } } } diff --git a/Assets/StreamingAssets/Setting/科目/10002/10002_2002_计量装置轮换.xml b/Assets/StreamingAssets/Setting/科目/10002/10002_2002_计量装置轮换.xml index 5c02305..79237c1 100644 --- a/Assets/StreamingAssets/Setting/科目/10002/10002_2002_计量装置轮换.xml +++ b/Assets/StreamingAssets/Setting/科目/10002/10002_2002_计量装置轮换.xml @@ -8,11 +8,11 @@ - + - +