using System.Collections; using System.Collections.Generic; using UnityEngine; public class StepTest : MonoBehaviour { List anli1Dic = new List() { new StepRelation("三角木", "千斤顶"), new StepRelation("三角木", "制动螺栓"), new StepRelation("千斤顶", "车轮"), new StepRelation("千斤顶", "车轮螺栓组"), new StepRelation("制动螺栓", "车轮"), new StepRelation("制动螺栓", "车轮螺栓组"), new StepRelation("车轮螺栓组", "一体化装置") }; // Start is called before the first frame update void Start() { //ProcessManager.Instance.InitStepRelationDic(anli1Dic, "一体化装置", "三角木"); //ProcessManager.Instance.SetProcess( ProcessEnum.teardown); //ProcessManager.Instance.StartProcess(ProcessOver); } private void ProcessOver(ProcessEnum process) { //Debug.Log($"{process}流程结束"); //switch (process) //{ // case ProcessEnum.teardown://拆卸流程结束时 反转流程继续开始安装流程 // Debug.Log($"开始安装流程"); // ProcessManager.Instance.SetProcess(ProcessEnum.assemble); // ProcessManager.Instance.StartProcess(ProcessOver); // break; // case ProcessEnum.assemble: // Debug.Log($"安装流程结束,训练完成"); // break; // default: // break; //} } private void Update() { //if (Input.GetKeyDown(KeyCode.I)) //{ // ProcessManager.Instance.SetProcess(ProcessEnum.assemble); // ProcessManager.Instance.StartProcess(); //} } }