修改编码格式
This commit is contained in:
parent
30fe51d21d
commit
75cde28528
|
@ -4,23 +4,23 @@ using System.Diagnostics;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 流程类
|
/// 流程类
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class D_Process : I_Enter, I_Exit
|
public class D_Process : I_Enter, I_Exit
|
||||||
{
|
{
|
||||||
#region 变量
|
#region 变量
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 自身Id
|
/// 自身Id
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public int id;
|
public int id;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 流程Id
|
/// 流程Id
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public int schemeId;
|
public int schemeId;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 流程名称
|
/// 流程名称
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string processName;
|
public string processName;
|
||||||
|
|
||||||
|
@ -28,17 +28,17 @@ public class D_Process : I_Enter, I_Exit
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 存放流程的子流程
|
/// 存放流程的子流程
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public List< D_SubProcess> subProcesses = new List<D_SubProcess>();
|
public List< D_SubProcess> subProcesses = new List<D_SubProcess>();
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 当前子流程
|
/// 当前子流程
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private D_SubProcess currentSubProcess;
|
private D_SubProcess currentSubProcess;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 当前子流程
|
/// 当前子流程
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public D_SubProcess CurrentSubProcess
|
public D_SubProcess CurrentSubProcess
|
||||||
{
|
{
|
||||||
|
@ -51,12 +51,12 @@ public class D_Process : I_Enter, I_Exit
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 当前子流程Id
|
/// 当前子流程Id
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private int currentSubProcessId;
|
private int currentSubProcessId;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 当前子流程Id
|
/// 当前子流程Id
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public int CurrentSubProcessId
|
public int CurrentSubProcessId
|
||||||
{
|
{
|
||||||
|
@ -69,7 +69,7 @@ public class D_Process : I_Enter, I_Exit
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 初始化
|
/// 初始化
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public void Init()
|
public void Init()
|
||||||
{
|
{
|
||||||
|
@ -80,7 +80,7 @@ public class D_Process : I_Enter, I_Exit
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 切换子流程
|
/// 切换子流程
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public void HandoverSubProcess(int subProcessId,int subProcessStepId)
|
public void HandoverSubProcess(int subProcessId,int subProcessStepId)
|
||||||
{
|
{
|
||||||
|
@ -88,12 +88,12 @@ public class D_Process : I_Enter, I_Exit
|
||||||
CurrentSubProcess.Exit();
|
CurrentSubProcess.Exit();
|
||||||
CurrentSubProcess = GetSubProcess(subProcessId);
|
CurrentSubProcess = GetSubProcess(subProcessId);
|
||||||
CurrentSubProcess.Enter();
|
CurrentSubProcess.Enter();
|
||||||
UnityEngine.Debug.Log("切换子流程到:" + subProcessId);
|
UnityEngine.Debug.Log("切换子流程到:" + subProcessId);
|
||||||
CurrentSubProcess.HandoverSubProcessStep(subProcessStepId);
|
CurrentSubProcess.HandoverSubProcessStep(subProcessStepId);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 根据id获取 子流程对象
|
/// 根据id获取 子流程对象
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="processId"></param>
|
/// <param name="processId"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
|
@ -110,18 +110,18 @@ public class D_Process : I_Enter, I_Exit
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 进入流程
|
/// 进入流程
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public void Enter()
|
public void Enter()
|
||||||
{
|
{
|
||||||
UnityEngine.Debug.Log("进入当前流程:" + id + "_" + processName);
|
UnityEngine.Debug.Log("进入当前流程:" + id + "_" + processName);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 退出流程
|
/// 退出流程
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public void Exit()
|
public void Exit()
|
||||||
{
|
{
|
||||||
UnityEngine.Debug.Log("退出当前流程:" + id +"_" + processName);
|
UnityEngine.Debug.Log("退出当前流程:" + id +"_" + processName);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,35 +3,35 @@ using System.Collections.Generic;
|
||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 方案/设备/系统
|
/// 方案/设备/系统
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class D_Scheme
|
public class D_Scheme
|
||||||
{
|
{
|
||||||
#region 变量
|
#region 变量
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 自身Id
|
/// 自身Id
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public int id;
|
public int id;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 方案名称
|
/// 方案名称
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string schemeName;
|
public string schemeName;
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 存放所有流程
|
/// 存放所有流程
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public List<D_Process> processes =new List<D_Process>();
|
public List<D_Process> processes =new List<D_Process>();
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 当前流程
|
/// 当前流程
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private D_Process currentProcess;
|
private D_Process currentProcess;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 当前流程
|
/// 当前流程
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public D_Process CurrentProcess
|
public D_Process CurrentProcess
|
||||||
{
|
{
|
||||||
|
@ -44,12 +44,12 @@ public class D_Scheme
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 当前流程id
|
/// 当前流程id
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private int currentProcessId;
|
private int currentProcessId;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 当前流程id
|
/// 当前流程id
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public int CurrentProcessId
|
public int CurrentProcessId
|
||||||
{
|
{
|
||||||
|
@ -62,7 +62,7 @@ public class D_Scheme
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 初始化
|
/// 初始化
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public void Init()
|
public void Init()
|
||||||
{
|
{
|
||||||
|
@ -73,7 +73,7 @@ public class D_Scheme
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 切换流程
|
/// 切换流程
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public void HandoverProcess(int processId, int subProcessId, int subProcessStepId)
|
public void HandoverProcess(int processId, int subProcessId, int subProcessStepId)
|
||||||
{
|
{
|
||||||
|
@ -81,13 +81,13 @@ public class D_Scheme
|
||||||
CurrentProcess.Exit();
|
CurrentProcess.Exit();
|
||||||
CurrentProcess = GetProcess(processId);
|
CurrentProcess = GetProcess(processId);
|
||||||
CurrentProcess.Enter();
|
CurrentProcess.Enter();
|
||||||
UnityEngine.Debug.Log("切换流程到:" + processId);
|
UnityEngine.Debug.Log("切换流程到:" + processId);
|
||||||
CurrentProcess.HandoverSubProcess(subProcessId, subProcessStepId);
|
CurrentProcess.HandoverSubProcess(subProcessId, subProcessStepId);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 根据id获取 流程对象
|
/// 根据id获取 流程对象
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="processId"></param>
|
/// <param name="processId"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
|
|
|
@ -3,60 +3,60 @@ using System.Collections.Generic;
|
||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 子流程
|
/// 子流程
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class D_SubProcess : I_Enter, I_Exit
|
public class D_SubProcess : I_Enter, I_Exit
|
||||||
{
|
{
|
||||||
|
|
||||||
#region 变量
|
#region 变量
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 自身Id
|
/// 自身Id
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public int id;
|
public int id;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 方案Id
|
/// 方案Id
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public int schemeId;
|
public int schemeId;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 流程id
|
/// 流程id
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public int processId;
|
public int processId;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 子流程描述
|
/// 子流程描述
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string subProcessName;
|
public string subProcessName;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 是否有前置条件
|
/// 是否有前置条件
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public bool isPrecondition;
|
public bool isPrecondition;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 前置条件
|
/// 前置条件
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string precondition;
|
public string precondition;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 提示
|
/// 提示
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string tips;
|
public string tips;
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 存放流程的子流程步骤
|
/// 存放流程的子流程步骤
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public List<D_SubProcessStep> subProcessStepes = new List<D_SubProcessStep>();
|
public List<D_SubProcessStep> subProcessStepes = new List<D_SubProcessStep>();
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 当前子流程步骤
|
/// 当前子流程步骤
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private D_SubProcessStep currentSubProcessStep;
|
private D_SubProcessStep currentSubProcessStep;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 当前子流程步骤
|
/// 当前子流程步骤
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public D_SubProcessStep CurrentSubProcessStep
|
public D_SubProcessStep CurrentSubProcessStep
|
||||||
{
|
{
|
||||||
|
@ -69,12 +69,12 @@ public class D_SubProcess : I_Enter, I_Exit
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 当前子流程步骤Id
|
/// 当前子流程步骤Id
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private int currentSubProcessStepId;
|
private int currentSubProcessStepId;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 当前子流程步骤Id
|
/// 当前子流程步骤Id
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public int CurrentSubProcessStepId
|
public int CurrentSubProcessStepId
|
||||||
{
|
{
|
||||||
|
@ -87,7 +87,7 @@ public class D_SubProcess : I_Enter, I_Exit
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 初始化
|
/// 初始化
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public void Init()
|
public void Init()
|
||||||
{
|
{
|
||||||
|
@ -99,7 +99,7 @@ public class D_SubProcess : I_Enter, I_Exit
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 切换子流程步骤
|
/// 切换子流程步骤
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public void HandoverSubProcessStep(int stepId)
|
public void HandoverSubProcessStep(int stepId)
|
||||||
{
|
{
|
||||||
|
@ -107,11 +107,11 @@ public class D_SubProcess : I_Enter, I_Exit
|
||||||
CurrentSubProcessStep.Exit();
|
CurrentSubProcessStep.Exit();
|
||||||
CurrentSubProcessStep = GetSubProcessStep(stepId);
|
CurrentSubProcessStep = GetSubProcessStep(stepId);
|
||||||
CurrentSubProcessStep.Enter();
|
CurrentSubProcessStep.Enter();
|
||||||
UnityEngine.Debug.Log("切换子流程步骤到:" + stepId);
|
UnityEngine.Debug.Log("切换子流程步骤到:" + stepId);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 根据id获取 流程对象
|
/// 根据id获取 流程对象
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="processId"></param>
|
/// <param name="processId"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
|
@ -128,18 +128,18 @@ public class D_SubProcess : I_Enter, I_Exit
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 退出子流程
|
/// 退出子流程
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public void Exit()
|
public void Exit()
|
||||||
{
|
{
|
||||||
UnityEngine.Debug.Log("退出当前子流程:" + id + "_" + subProcessName);
|
UnityEngine.Debug.Log("退出当前子流程:" + id + "_" + subProcessName);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 进入子流程
|
/// 进入子流程
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public void Enter()
|
public void Enter()
|
||||||
{
|
{
|
||||||
UnityEngine.Debug.Log("进入当前子流程:" + id + "_" + subProcessName);
|
UnityEngine.Debug.Log("进入当前子流程:" + id + "_" + subProcessName);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,7 +2,7 @@ using System.Collections;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 子流程步骤
|
/// 子流程步骤
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class D_SubProcessStep : I_Enter, I_Exit
|
public class D_SubProcessStep : I_Enter, I_Exit
|
||||||
{
|
{
|
||||||
|
@ -15,17 +15,17 @@ public class D_SubProcessStep : I_Enter, I_Exit
|
||||||
public string precondition;
|
public string precondition;
|
||||||
public float score;
|
public float score;
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 进入
|
/// 进入
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public void Enter()
|
public void Enter()
|
||||||
{
|
{
|
||||||
UnityEngine.Debug.Log("进入当前子流程步骤:" + id + "_" + subProcessStepName);
|
UnityEngine.Debug.Log("进入当前子流程步骤:" + id + "_" + subProcessStepName);
|
||||||
}
|
}
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 退出
|
/// 退出
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public void Exit()
|
public void Exit()
|
||||||
{
|
{
|
||||||
UnityEngine.Debug.Log("退出当前子流程步骤:" + id + "_" + subProcessStepName);
|
UnityEngine.Debug.Log("退出当前子流程步骤:" + id + "_" + subProcessStepName);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,7 +3,7 @@ using System.Collections.Generic;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 用户数据
|
/// 用户数据
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class UserData
|
public class UserData
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,91 +1,91 @@
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 流程分类/阶段
|
/// 流程分类/阶段
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public enum E_ProcessType
|
public enum E_ProcessType
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 查看任务单
|
/// 查看任务单
|
||||||
/// </summary>
|
/// </summary>
|
||||||
ViewTickets,
|
ViewTickets,
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 办理工作票
|
/// 办理工作票
|
||||||
/// </summary>
|
/// </summary>
|
||||||
ApplyWorkTicket,
|
ApplyWorkTicket,
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 填写装拆工单
|
/// 填写装拆工单
|
||||||
/// </summary>
|
/// </summary>
|
||||||
FillInAssemblyAndDisassemblyWorkSheet,
|
FillInAssemblyAndDisassemblyWorkSheet,
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 正确着装
|
/// 正确着装
|
||||||
/// </summary>
|
/// </summary>
|
||||||
ProperlyDress,
|
ProperlyDress,
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 选择工器具
|
/// 选择工器具
|
||||||
/// </summary>
|
/// </summary>
|
||||||
SelectTools,
|
SelectTools,
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 断开电源并验电
|
/// 断开电源并验电
|
||||||
/// </summary>
|
/// </summary>
|
||||||
DeenergizationVerificationOfLivePart,
|
DeenergizationVerificationOfLivePart,
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 核对和抄录计量设备信息
|
/// 核对和抄录计量设备信息
|
||||||
/// </summary>
|
/// </summary>
|
||||||
CheckAndTranscribeMeteringEquipmentInformation,
|
CheckAndTranscribeMeteringEquipmentInformation,
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 安装电能表
|
/// 安装电能表
|
||||||
/// </summary>
|
/// </summary>
|
||||||
InstallAnEnergyMeter,
|
InstallAnEnergyMeter,
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 现场通电检查
|
/// 现场通电检查
|
||||||
/// </summary>
|
/// </summary>
|
||||||
OnSitePowerOnAndInspection,
|
OnSitePowerOnAndInspection,
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 实施封印
|
/// 实施封印
|
||||||
/// </summary>
|
/// </summary>
|
||||||
CarryOutSeal,
|
CarryOutSeal,
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 填写告知单
|
/// 填写告知单
|
||||||
/// </summary>
|
/// </summary>
|
||||||
FillInTheNotificationForm,
|
FillInTheNotificationForm,
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 清理现场
|
/// 清理现场
|
||||||
/// </summary>
|
/// </summary>
|
||||||
SiteClearing,
|
SiteClearing,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 模式
|
/// 模式
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public enum E_ModeType
|
public enum E_ModeType
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 空
|
/// 空
|
||||||
/// </summary>
|
/// </summary>
|
||||||
None = 0,
|
None = 0,
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 学习
|
/// 学习
|
||||||
/// </summary>
|
/// </summary>
|
||||||
Study = 1,
|
Study = 1,
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 练习
|
/// 练习
|
||||||
/// </summary>
|
/// </summary>
|
||||||
Practice = 2,
|
Practice = 2,
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 考试
|
/// 考试
|
||||||
/// </summary>
|
/// </summary>
|
||||||
Exam,
|
Exam,
|
||||||
}
|
}
|
||||||
|
@ -93,17 +93,17 @@ public enum E_ModeType
|
||||||
public enum E_ToolOrMaterial
|
public enum E_ToolOrMaterial
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 空
|
/// 空
|
||||||
/// </summary>
|
/// </summary>
|
||||||
None = 0,
|
None = 0,
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 工具
|
/// 工具
|
||||||
/// </summary>
|
/// </summary>
|
||||||
Tool,
|
Tool,
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 材质
|
/// 材质
|
||||||
/// </summary>
|
/// </summary>
|
||||||
Material,
|
Material,
|
||||||
}
|
}
|
|
@ -3,38 +3,38 @@ using System.Collections.Generic;
|
||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 数据管理类
|
/// 数据管理类
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class DataManager : BaseManager<DataManager>
|
public class DataManager : BaseManager<DataManager>
|
||||||
{
|
{
|
||||||
private DataManager() { }
|
private DataManager() { }
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 方案
|
/// 方案
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private Dictionary<int, TB_Scheme> schemeDic = new Dictionary<int, TB_Scheme>();
|
private Dictionary<int, TB_Scheme> schemeDic = new Dictionary<int, TB_Scheme>();
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 流程
|
/// 流程
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private Dictionary<int, TB_Process> processDic = new Dictionary<int, TB_Process>();
|
private Dictionary<int, TB_Process> processDic = new Dictionary<int, TB_Process>();
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 子流程
|
/// 子流程
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private Dictionary<int, TB_SubProcess> subProcessDic = new Dictionary<int, TB_SubProcess>();
|
private Dictionary<int, TB_SubProcess> subProcessDic = new Dictionary<int, TB_SubProcess>();
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 子流程步骤
|
/// 子流程步骤
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private Dictionary<int, TB_SubProcessStep> subProcessStepDic = new Dictionary<int, TB_SubProcessStep>();
|
private Dictionary<int, TB_SubProcessStep> subProcessStepDic = new Dictionary<int, TB_SubProcessStep>();
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 用户数据
|
/// 用户数据
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public UserData userData;
|
public UserData userData;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 初始化
|
/// 初始化
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public void Init()
|
public void Init()
|
||||||
{
|
{
|
||||||
|
@ -45,14 +45,14 @@ public class DataManager : BaseManager<DataManager>
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取D_Scheme
|
/// 获取D_Scheme
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="id"></param>
|
/// <param name="id"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
public D_Scheme GetSchemeData(int id)
|
public D_Scheme GetSchemeData(int id)
|
||||||
{
|
{
|
||||||
D_Scheme d_Scheme = new D_Scheme();
|
D_Scheme d_Scheme = new D_Scheme();
|
||||||
//获取方案数据
|
//获取方案数据
|
||||||
if (schemeDic.ContainsKey(id))
|
if (schemeDic.ContainsKey(id))
|
||||||
{
|
{
|
||||||
d_Scheme.id = schemeDic[id].id;
|
d_Scheme.id = schemeDic[id].id;
|
||||||
|
@ -63,14 +63,14 @@ public class DataManager : BaseManager<DataManager>
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 根据方案Id 获取流程列表
|
/// 根据方案Id 获取流程列表
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="schemeId"></param>
|
/// <param name="schemeId"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
private List<D_Process> GetD_Processes(int schemeId)
|
private List<D_Process> GetD_Processes(int schemeId)
|
||||||
{
|
{
|
||||||
List<D_Process> d_Processes = new List<D_Process>();
|
List<D_Process> d_Processes = new List<D_Process>();
|
||||||
//获取方案流程数据
|
//获取方案流程数据
|
||||||
foreach (var item in processDic.Values)
|
foreach (var item in processDic.Values)
|
||||||
{
|
{
|
||||||
if (item.schemeId == schemeId)
|
if (item.schemeId == schemeId)
|
||||||
|
@ -87,7 +87,7 @@ public class DataManager : BaseManager<DataManager>
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 根据方案Id,流程Id ,获取子流程列表
|
/// 根据方案Id,流程Id ,获取子流程列表
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="schemeId"></param>
|
/// <param name="schemeId"></param>
|
||||||
/// <param name="processId"></param>
|
/// <param name="processId"></param>
|
||||||
|
@ -115,7 +115,7 @@ public class DataManager : BaseManager<DataManager>
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 根据方案Id,流程Id,子流程Id 获取子流程步骤列表
|
/// 根据方案Id,流程Id,子流程Id 获取子流程步骤列表
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="schemeId"></param>
|
/// <param name="schemeId"></param>
|
||||||
/// <param name="processId"></param>
|
/// <param name="processId"></param>
|
||||||
|
@ -144,7 +144,7 @@ public class DataManager : BaseManager<DataManager>
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取报告
|
/// 获取报告
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="id"></param>
|
/// <param name="id"></param>
|
||||||
public R_Scheme GetSchemeReport(int id)
|
public R_Scheme GetSchemeReport(int id)
|
||||||
|
|
|
@ -1,81 +1,81 @@
|
||||||
using System.Runtime.InteropServices.ComTypes;
|
using System.Runtime.InteropServices.ComTypes;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 统一引用单例类
|
/// 统一引用单例类
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class GameManager : SingletonAutoMono<GameManager>
|
public class GameManager : SingletonAutoMono<GameManager>
|
||||||
{
|
{
|
||||||
#region 底层框架内容
|
#region 底层框架内容
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Ui管理类
|
/// Ui管理类
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static UIManager UIMgr { get; private set; }
|
public static UIManager UIMgr { get; private set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 事件中心
|
/// 事件中心
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static EventCenter EventMgr { get; private set; }
|
public static EventCenter EventMgr { get; private set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 公共mono
|
/// 公共mono
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static MonoMgr MonoMgr { get; private set; }
|
public static MonoMgr MonoMgr { get; private set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 二进制管理类
|
/// 二进制管理类
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static BinaryManager BinaryMgr { get; private set; }
|
public static BinaryManager BinaryMgr { get; private set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// json管理类
|
/// json管理类
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static JsonManager JsonMgr { get; private set; }
|
public static JsonManager JsonMgr { get; private set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 场景加载管理类
|
/// 场景加载管理类
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static ScenesManager ScenesMgr { get; private set; }
|
public static ScenesManager ScenesMgr { get; private set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 资源加载类
|
/// 资源加载类
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static ResourcesManager ResourcesMgr { get; private set; }
|
public static ResourcesManager ResourcesMgr { get; private set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 音乐音效管理类
|
/// 音乐音效管理类
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static MusicManager MusicMgr { get; private set; }
|
public static MusicManager MusicMgr { get; private set; }
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
#region 项目管理类
|
#region 项目管理类
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 数据管理类
|
/// 数据管理类
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static DataManager DataMgr { get; private set; }
|
public static DataManager DataMgr { get; private set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 网络接口管理类
|
/// 网络接口管理类
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static NetManager NetMgr { get; private set; }
|
public static NetManager NetMgr { get; private set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 实训流程管理类
|
/// 实训流程管理类
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static ProcessManager ProcessMgr { get; private set; }
|
public static ProcessManager ProcessMgr { get; private set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 报告管理类
|
/// 报告管理类
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static ReportManager ReportMgr { get; private set; }
|
public static ReportManager ReportMgr { get; private set; }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 实训操作管理类
|
/// 实训操作管理类
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public static HandsOnTrainingMgr HandsOnTrainingMgr { get; private set; }
|
public static HandsOnTrainingMgr HandsOnTrainingMgr { get; private set; }
|
||||||
#endregion
|
#endregion
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 初始化
|
/// 初始化
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public void Init()
|
public void Init()
|
||||||
{
|
{
|
||||||
|
@ -97,19 +97,19 @@ public class GameManager : SingletonAutoMono<GameManager>
|
||||||
|
|
||||||
UIMgr.ShowPanel<UI_LoadingPanel>(E_UI_Layer.System, (panel) =>
|
UIMgr.ShowPanel<UI_LoadingPanel>(E_UI_Layer.System, (panel) =>
|
||||||
{
|
{
|
||||||
print("显示加载页面");
|
print("显示加载页面");
|
||||||
panel.Init();
|
panel.Init();
|
||||||
EventMgr.EventTrigger<float>(Enum_EventType.UpdateProgress, 0.1f);
|
EventMgr.EventTrigger<float>(Enum_EventType.UpdateProgress, 0.1f);
|
||||||
//加载本地文件数据
|
//加载本地文件数据
|
||||||
//初始化用户数据 模式 token等必要数据
|
//初始化用户数据 模式 token等必要数据
|
||||||
//读取成功 获取模式 根据模式显示初始化页面
|
//读取成功 获取模式 根据模式显示初始化页面
|
||||||
NetMgr.GetConfig((isSuccess) =>
|
NetMgr.GetConfig((isSuccess) =>
|
||||||
{
|
{
|
||||||
if (isSuccess)
|
if (isSuccess)
|
||||||
{
|
{
|
||||||
DataMgr.Init();
|
DataMgr.Init();
|
||||||
//读取成功 获取模式 根据模式显示初始化页面
|
//读取成功 获取模式 根据模式显示初始化页面
|
||||||
//是否为考试模式 安全员
|
//是否为考试模式 安全员
|
||||||
if (!true)
|
if (!true)
|
||||||
{
|
{
|
||||||
|
|
||||||
|
@ -117,17 +117,17 @@ public class GameManager : SingletonAutoMono<GameManager>
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
EventMgr.EventTrigger<float>(Enum_EventType.UpdateProgress, 0.2f);
|
EventMgr.EventTrigger<float>(Enum_EventType.UpdateProgress, 0.2f);
|
||||||
//显示UI菜单列表
|
//显示UI菜单列表
|
||||||
UIMgr.ShowPanel<UI_SelectModePanel>(E_UI_Layer.Mid, panel =>
|
UIMgr.ShowPanel<UI_SelectModePanel>(E_UI_Layer.Mid, panel =>
|
||||||
{
|
{
|
||||||
EventMgr.EventTrigger<float>(Enum_EventType.UpdateProgress, 0.2f);
|
EventMgr.EventTrigger<float>(Enum_EventType.UpdateProgress, 0.2f);
|
||||||
panel.Init();
|
panel.Init();
|
||||||
});
|
});
|
||||||
|
|
||||||
//加载场景 /显示UI
|
//加载场景 /显示UI
|
||||||
ScenesMgr.LoadSceneAsyn("02_MenuScene", () =>
|
ScenesMgr.LoadSceneAsyn("02_MenuScene", () =>
|
||||||
{
|
{
|
||||||
//修改本地文件
|
//修改本地文件
|
||||||
NetMgr.SaveInfo("1");
|
NetMgr.SaveInfo("1");
|
||||||
EventMgr.EventTrigger<float>(Enum_EventType.UpdateProgress, 0.5f);
|
EventMgr.EventTrigger<float>(Enum_EventType.UpdateProgress, 0.5f);
|
||||||
});
|
});
|
||||||
|
@ -135,7 +135,7 @@ public class GameManager : SingletonAutoMono<GameManager>
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
//读取失败 提示信息并退出应用
|
//读取失败 提示信息并退出应用
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
@ -143,9 +143,9 @@ public class GameManager : SingletonAutoMono<GameManager>
|
||||||
|
|
||||||
public void End()
|
public void End()
|
||||||
{
|
{
|
||||||
//修改本地文件
|
//修改本地文件
|
||||||
NetMgr.SaveInfo("0");
|
NetMgr.SaveInfo("0");
|
||||||
//退出应用
|
//退出应用
|
||||||
Application.Quit();
|
Application.Quit();
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,14 +7,14 @@ public class NetManager : BaseManager<NetManager>
|
||||||
private NetManager() { }
|
private NetManager() { }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 网络访问的token
|
/// 网络访问的token
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public string token;
|
public string token;
|
||||||
|
|
||||||
public string url;
|
public string url;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 获取本地配置文件
|
/// 获取本地配置文件
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="action"></param>
|
/// <param name="action"></param>
|
||||||
public void GetConfig(UnityAction<bool> action)
|
public void GetConfig(UnityAction<bool> action)
|
||||||
|
@ -29,11 +29,11 @@ public class NetManager : BaseManager<NetManager>
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
Debug.Log("没有对应的文件");
|
Debug.Log("没有对应的文件");
|
||||||
action?.Invoke(false);
|
action?.Invoke(false);
|
||||||
//UIManager.Instance.ShowPanel<UI_MessagePanel>(E_UI_Layer.System, (panel) =>
|
//UIManager.Instance.ShowPanel<UI_MessagePanel>(E_UI_Layer.System, (panel) =>
|
||||||
//{
|
//{
|
||||||
// panel.Init("没有读取到正确的Ip地址文件,请检查项目StreamingAssets文件夹下Config文件是否正常配置地址端口后再试!", E_MessageType.Error, Const.E_QuitApp);
|
// panel.Init("没有读取到正确的Ip地址文件,请检查项目StreamingAssets文件夹下Config文件是否正常配置地址端口后再试!", E_MessageType.Error, Const.E_QuitApp);
|
||||||
//});
|
//});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -5,45 +5,45 @@ using UnityEngine;
|
||||||
public class ProcessManager : BaseManager<ProcessManager>
|
public class ProcessManager : BaseManager<ProcessManager>
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 构造函数
|
/// 构造函数
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private ProcessManager() { }
|
private ProcessManager() { }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 实操项目id
|
/// 实操项目id
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public int id;
|
public int id;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 模式
|
/// 模式
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public E_ModeType mode;
|
public E_ModeType mode;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 当前的项目/方案
|
/// 当前的项目/方案
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public D_Scheme d_Scheme;
|
public D_Scheme d_Scheme;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 当前流程Id
|
/// 当前流程Id
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public int processId = -1;
|
public int processId = -1;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 当前子流程Id
|
/// 当前子流程Id
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public int subProcessId = -1;
|
public int subProcessId = -1;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 当前子流程步骤Id
|
/// 当前子流程步骤Id
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public int subProcessStepId = -1;
|
public int subProcessStepId = -1;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 初始化
|
/// 初始化
|
||||||
/// 根据方案id 生成流程数据
|
/// 根据方案id 生成流程数据
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="id">方案id</param>
|
/// <param name="id">方案id</param>
|
||||||
public void Init(int id, E_ModeType mode)
|
public void Init(int id, E_ModeType mode)
|
||||||
{
|
{
|
||||||
this.id = id;
|
this.id = id;
|
||||||
|
@ -51,11 +51,11 @@ public class ProcessManager : BaseManager<ProcessManager>
|
||||||
d_Scheme = DataManager.Instance.GetSchemeData(id);
|
d_Scheme = DataManager.Instance.GetSchemeData(id);
|
||||||
ReportManager.Instance.creport = DataManager.Instance.GetSchemeReport(id);
|
ReportManager.Instance.creport = DataManager.Instance.GetSchemeReport(id);
|
||||||
d_Scheme.Init();
|
d_Scheme.Init();
|
||||||
Debug.Log("流程初始化完成");
|
Debug.Log("流程初始化完成");
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 切换流程
|
/// 切换流程
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public void HandoverProcess(int processId, int subProcessId, int subProcessStepId)
|
public void HandoverProcess(int processId, int subProcessId, int subProcessStepId)
|
||||||
{
|
{
|
||||||
|
@ -65,7 +65,7 @@ public class ProcessManager : BaseManager<ProcessManager>
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 切换流程
|
/// 切换流程
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public void HandoverSubProcess(int subProcessId, int subProcessStepId)
|
public void HandoverSubProcess(int subProcessId, int subProcessStepId)
|
||||||
{
|
{
|
||||||
|
@ -75,7 +75,7 @@ public class ProcessManager : BaseManager<ProcessManager>
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 切换流程
|
/// 切换流程
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public void HandoverSubProcessStep(int subProcessStepId)
|
public void HandoverSubProcessStep(int subProcessStepId)
|
||||||
{
|
{
|
||||||
|
@ -85,7 +85,7 @@ public class ProcessManager : BaseManager<ProcessManager>
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 结束
|
/// 结束
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public void End()
|
public void End()
|
||||||
{
|
{
|
||||||
|
|
|
@ -7,7 +7,7 @@ public class ReportManager : BaseManager<ReportManager>
|
||||||
private ReportManager() { }
|
private ReportManager() { }
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 当前的系统/方案的报告
|
/// 当前的系统/方案的报告
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public R_Scheme creport;
|
public R_Scheme creport;
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,18 +2,18 @@ using System.Collections;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 实训模式或者学习模式 选择时
|
/// 实训模式或者学习模式 选择时
|
||||||
/// 记录数据
|
/// 记录数据
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class StudyOrPracticeMgr : BaseManager<StudyOrPracticeMgr>
|
public class StudyOrPracticeMgr : BaseManager<StudyOrPracticeMgr>
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 模式
|
/// 模式
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public E_ModeType modeType = E_ModeType.None;
|
public E_ModeType modeType = E_ModeType.None;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 流程/设备/方案id
|
/// 流程/设备/方案id
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public int deviceId;
|
public int deviceId;
|
||||||
|
|
||||||
|
|
|
@ -6,12 +6,12 @@ using UnityEngine;
|
||||||
public abstract class BaseToolOrMaterial : MonoBehaviour
|
public abstract class BaseToolOrMaterial : MonoBehaviour
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 묏야Id
|
/// 工具Id
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public int toolId;
|
public int toolId;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 묏포야잚謹 묏야/꼼죕
|
/// 工器具类型 工具/材料
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public E_ToolOrMaterial toolOrMaterial;
|
public E_ToolOrMaterial toolOrMaterial;
|
||||||
|
|
||||||
|
|
|
@ -2,7 +2,7 @@ using System.Collections;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 없鍍쭁介독
|
/// 绝缘螺丝刀
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class Tool_InsulatedScrewdriver : BaseToolOrMaterial
|
public class Tool_InsulatedScrewdriver : BaseToolOrMaterial
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,13 +1,13 @@
|
||||||
using System.Collections;
|
using System.Collections;
|
||||||
using System.Collections.Generic;
|
using System.Collections.Generic;
|
||||||
using UnityEngine;
|
using UnityEngine;
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 启动游戏
|
/// 启动游戏
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public class StartApp : MonoBehaviour
|
public class StartApp : MonoBehaviour
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 初始化
|
/// 初始化
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private void Start()
|
private void Start()
|
||||||
{
|
{
|
||||||
|
|
|
@ -6,22 +6,22 @@ using UnityEngine.UI;
|
||||||
public class UI_LoadingPanel : BasePanel
|
public class UI_LoadingPanel : BasePanel
|
||||||
{
|
{
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 当前进度
|
/// 当前进度
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private float currentProgress = 0;
|
private float currentProgress = 0;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 目标进度
|
/// 目标进度
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private float targetProgress = 0;
|
private float targetProgress = 0;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 是否更新
|
/// 是否更新
|
||||||
/// </summary>
|
/// </summary>
|
||||||
private bool isUpdate = false;
|
private bool isUpdate = false;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 显示
|
/// 显示
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public override void ShowMe()
|
public override void ShowMe()
|
||||||
{
|
{
|
||||||
|
@ -29,7 +29,7 @@ public class UI_LoadingPanel : BasePanel
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 隐藏面板
|
/// 隐藏面板
|
||||||
/// </summary>
|
/// </summary>
|
||||||
public override void HideMe()
|
public override void HideMe()
|
||||||
{
|
{
|
||||||
|
@ -57,7 +57,7 @@ public class UI_LoadingPanel : BasePanel
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 更新进度
|
/// 更新进度
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="progress"></param>
|
/// <param name="progress"></param>
|
||||||
private void UpdateProgress(float progress)
|
private void UpdateProgress(float progress)
|
||||||
|
|
Loading…
Reference in New Issue