This commit is contained in:
parent
1354e80e51
commit
cdf9d67269
|
|
@ -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'|
|
||||||
|
|
@ -73,13 +73,13 @@ public class GameManager : MonoSingleton<GameManager>
|
||||||
{
|
{
|
||||||
Debug.Log("数据不对");
|
Debug.Log("数据不对");
|
||||||
}
|
}
|
||||||
SceneLoader.LoadAsync("Models");
|
SceneLoader.LoadAsync("Models _tsq");
|
||||||
RunModelMgr.startTime = DateTime.Now;
|
RunModelMgr.startTime = DateTime.Now;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
///练习模式和学习模式
|
///练习模式和学习模式
|
||||||
SceneLoader.LoadAsync("Models");
|
SceneLoader.LoadAsync("Models _tsq");
|
||||||
}
|
}
|
||||||
|
|
||||||
tokenUrl = NetMgr.GetTokenURL();
|
tokenUrl = NetMgr.GetTokenURL();
|
||||||
|
|
|
||||||
|
|
@ -27,7 +27,7 @@ public abstract class ScoreBase : MonoBehaviour
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 此科目步骤
|
/// 此科目步骤
|
||||||
/// </summary>
|
/// </summary>
|
||||||
protected Dictionary<int, ScoreSubjectStep> steps;
|
public Dictionary<int, ScoreSubjectStep> steps;
|
||||||
public virtual void Init()
|
public virtual void Init()
|
||||||
{
|
{
|
||||||
systemId = 10001;
|
systemId = 10001;
|
||||||
|
|
|
||||||
|
|
@ -24,16 +24,6 @@ public class StepState_10001 : ScoreBase
|
||||||
{
|
{
|
||||||
steps.Add(a.subProcessId, a);
|
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)
|
public override void LoadSceneBufferList(string sceneInfo)
|
||||||
|
|
|
||||||
|
|
@ -5,6 +5,7 @@ using SK.Framework;
|
||||||
using UnityEngine.UI;
|
using UnityEngine.UI;
|
||||||
using TMPro;
|
using TMPro;
|
||||||
using UnityEngine.EventSystems;
|
using UnityEngine.EventSystems;
|
||||||
|
using OfficeOpenXml.FormulaParsing.Excel.Functions.Logical;
|
||||||
|
|
||||||
public class EquipmentIIntroduction_TSQ : MonoBehaviour
|
public class EquipmentIIntroduction_TSQ : MonoBehaviour
|
||||||
{
|
{
|
||||||
|
|
@ -13,13 +14,13 @@ public class EquipmentIIntroduction_TSQ : MonoBehaviour
|
||||||
public int firstStep = 0;
|
public int firstStep = 0;
|
||||||
public int secondStep = 0;
|
public int secondStep = 0;
|
||||||
private int currentStep;
|
private int currentStep;
|
||||||
private bool currentState;
|
public bool currentState;
|
||||||
void Awake()
|
void Awake()
|
||||||
{
|
{
|
||||||
instance = this;
|
instance = this;
|
||||||
currentStep = firstStep;
|
currentStep = firstStep;
|
||||||
taskStep.Add(new TaskStep { StepId = firstStep, Description = currentState ? "关闭" + transform.name : "开启" + transform.name });
|
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()
|
void OnMouseDown()
|
||||||
|
|
@ -60,10 +61,13 @@ public class EquipmentIIntroduction_TSQ : MonoBehaviour
|
||||||
|
|
||||||
private void SetStep(bool state)
|
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;
|
bool isError = currentStep != EquipmentProcessExample_TSQ.Instance._expectStepIndex;
|
||||||
TaskManager.Instance.ReportCurrentStepResult(isError);
|
TaskManager.Instance.ReportCurrentStepResult(isError);
|
||||||
|
ScoreManager.Instance?.GetScoreBaseBySchemeID(GameManager.RunModelMgr.schemeID).steps[EquipmentProcessExample_TSQ.Instance._expectStepIndex].SetScore(!isError);
|
||||||
EquipmentProcessExample_TSQ.Instance._expectStepIndex++;
|
EquipmentProcessExample_TSQ.Instance._expectStepIndex++;
|
||||||
currentStep = secondStep;
|
currentStep = secondStep;
|
||||||
|
currentState = state;
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 开启冷却塔风机1面板
|
/// 开启冷却塔风机1面板
|
||||||
|
|
|
||||||
|
|
@ -8,9 +8,7 @@ using SK.Framework;
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class EquipmentProcessExample_TSQ : MonoSingleton<EquipmentProcessExample_TSQ>
|
public class EquipmentProcessExample_TSQ : MonoSingleton<EquipmentProcessExample_TSQ>
|
||||||
{
|
{
|
||||||
private TaskData EquipmentProcess_Task;
|
public TaskData EquipmentProcess_Task;
|
||||||
public List<TaskStep> taskSteps = new List<TaskStep>();
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 当前期望输入的 Step 索引(0-based)
|
/// 当前期望输入的 Step 索引(0-based)
|
||||||
/// 仅用于示例判断“是否按对”,不控制流程
|
/// 仅用于示例判断“是否按对”,不控制流程
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue