This commit is contained in:
何嘉峣 2026-04-09 13:22:25 +08:00
parent 1354e80e51
commit cdf9d67269
6 changed files with 11 additions and 19 deletions

View File

@ -1 +1 @@
2026-04-07 17:45:56#'efficiencymanagement://29,55,118,1,3,1491131907079929856,eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6Ijk4ZjVhNGUzLTNhNDItNDExNy04YTkyLWMyYzAwMzE3NWIzZiJ9.K0fYzaENp2Nm0gfHE0QVR1rYIRaeCvfBEQO_jj6BJvTeUGxJ3hFJIkisuXQM5Cwnke_EQVY52WqO5QG0kTPp6Q,&/#116;est1212,10001,172.16.1.135:8081,60'|
2026-04-09 11:04:34#'efficiencymanagement://31,56,118,1,3,1491755674177110016,eyJhbGciOiJIUzUxMiJ9.eyJsb2dpbl91c2VyX2tleSI6IjExZmY1ZmQ3LTAxN2QtNGNlMC1hOGZkLTg1NzExY2M0OGQzNyJ9.fxpB_DdhcmFI0eRwbKyBMzV6ErQsYjRAeXHCTWIWE1cFbk5FVD6wuv3VB2_b40gFk4lYSCf0pTTiJVJwCTOeOg,&/#116;est1212,10001,172.16.1.135:8081,60'|

View File

@ -73,13 +73,13 @@ public class GameManager : MonoSingleton<GameManager>
{
Debug.Log("数据不对");
}
SceneLoader.LoadAsync("Models");
SceneLoader.LoadAsync("Models _tsq");
RunModelMgr.startTime = DateTime.Now;
}
else
{
///练习模式和学习模式
SceneLoader.LoadAsync("Models");
SceneLoader.LoadAsync("Models _tsq");
}
tokenUrl = NetMgr.GetTokenURL();

View File

@ -27,7 +27,7 @@ public abstract class ScoreBase : MonoBehaviour
/// <summary>
/// 此科目步骤
/// </summary>
protected Dictionary<int, ScoreSubjectStep> steps;
public Dictionary<int, ScoreSubjectStep> steps;
public virtual void Init()
{
systemId = 10001;

View File

@ -24,16 +24,6 @@ public class StepState_10001 : ScoreBase
{
steps.Add(a.subProcessId, a);
});
steps[1].SetScore(true);
steps[2].SetScore(true);
steps[3].SetScore(false);
steps[4].SetScore(true);
steps[5].SetScore(true);
steps[6].SetScore(true);
steps[7].SetScore(true);
steps[8].SetScore(true);
}
public override void LoadSceneBufferList(string sceneInfo)

View File

@ -5,6 +5,7 @@ using SK.Framework;
using UnityEngine.UI;
using TMPro;
using UnityEngine.EventSystems;
using OfficeOpenXml.FormulaParsing.Excel.Functions.Logical;
public class EquipmentIIntroduction_TSQ : MonoBehaviour
{
@ -13,13 +14,13 @@ public class EquipmentIIntroduction_TSQ : MonoBehaviour
public int firstStep = 0;
public int secondStep = 0;
private int currentStep;
private bool currentState;
public bool currentState;
void Awake()
{
instance = this;
currentStep = firstStep;
taskStep.Add(new TaskStep { StepId = firstStep, Description = currentState ? "关闭" + transform.name : "开启" + transform.name });
taskStep.Add(new TaskStep { StepId = secondStep, Description = currentState ? "关闭" + transform.name : "开启" + transform.name });
taskStep.Add(new TaskStep { StepId = secondStep, Description = currentState ? "关闭" + transform.name : "开启" + transform.name });
}
void OnMouseDown()
@ -60,10 +61,13 @@ public class EquipmentIIntroduction_TSQ : MonoBehaviour
private void SetStep(bool state)
{
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);
EquipmentProcessExample_TSQ.Instance._expectStepIndex++;
currentStep = secondStep;
currentState = state;
}
/// <summary>
/// 开启冷却塔风机1面板

View File

@ -8,9 +8,7 @@ using SK.Framework;
/// </summary>
public class EquipmentProcessExample_TSQ : MonoSingleton<EquipmentProcessExample_TSQ>
{
private TaskData EquipmentProcess_Task;
public List<TaskStep> taskSteps = new List<TaskStep>();
public TaskData EquipmentProcess_Task;
/// <summary>
/// 当前期望输入的 Step 索引0-based
/// 仅用于示例判断“是否按对”,不控制流程