Test-TaizhouWarehousePhaseII/3d/Assets/test.cs

81 lines
3.2 KiB
C#

using System.Collections;
using System.Collections.Generic;
using DefaultNamespace.ProcessMode;
using Framework.Manager;
using MotionFramework;
using Newtonsoft.Json;
using UnityEngine;
public class test : MonoBehaviour
{
public GameObject aa;
IEnumerator Start()
{
yield return new WaitForSeconds(2);
Debug.Log(JsonConvert.SerializeObject(new CustodyInbound()));
// 订阅当前动作完成事件
MotionEngine.GetModule<ProcessManager>().OnCurrentActionCompleteEvent += (e) => {
Debug.Log("当前动作已完成!");
};
// 订阅当前步骤所有动作完成事件
MotionEngine.GetModule<ProcessManager>().OnStepActionsCompleteEvent += (e) => {
Debug.Log("当前步骤的所有动作已完成!");
};
// MotionEngine.GetModule<ProcessManager>().JumpToProcessAsync(1, 0);
// MotionEngine.GetModule<ProcessManager>().HandleClick("任务书");
// MotionEngine.GetModule<ProcessManager>().HandleClick("对话结束");
// Debug.Log(MotionEngine.GetModule<ProcessManager>().HandleClick(new List<string>({""})));
// Debug.Log(MotionEngine.GetModule<ProcessManager>().HandleClick("任务书"));
// Debug.Log(MotionEngine.GetModule<ProcessManager>().HandleClick(new List<string>()
// {
// "陈二","赵六1","HDA1"
// }));
// Debug.Log(MotionEngine.GetModule<ProcessManager>().HandleClick(new List<string>()
// {
// "陈二","赵六","HDA1"
// }));
// Debug.Log(MotionEngine.GetModule<ProcessManager>().HandleClick(new List<string>()
// {
// "2222","3333"
// }));
//
// Debug.Log(MotionEngine.GetModule<ProcessManager>().HandleClick("pp1p"));
// Debug.Log(MotionEngine.GetModule<ProcessManager>().HandleClick("pp2p"));
// Debug.Log(MotionEngine.GetModule<ProcessManager>().HandleClick("pp3p"));
// Debug.Log(MotionEngine.GetModule<ProcessManager>().HandleClick("ppp"));
// Debug.Log(MotionEngine.GetModule<ProcessManager>().HandleClick("3"));
// Debug.Log(MotionEngine.GetModule<ProcessManager>().HandleClick("ppp"));
// Debug.Log(MotionEngine.GetModule<ProcessManager>().HandleClick("3"));
// Debug.Log(MotionEngine.GetModule<ProcessManager>().HandleClick("33"));
// Debug.Log(MotionEngine.GetModule<ProcessManager>().HandleClick("2"));
// Debug.Log(MotionEngine.GetModule<ProcessManager>().CalculateTotalScore());
// Debug.Log(MotionEngine.GetModule<ProcessManager>().HandleClick("11"));
//
// GuideMask.Instance.CreateRectangleMask(aa);
// 2. 开始引导流程
// TutorialGuideManager.Instance.InitializeGuideObjects();
// TutorialGuideManager.Instance.StartGuide();
// yield return new WaitForSeconds(5);
// TutorialGuideManager.Instance.HideGuide();
// yield return new WaitForSeconds(5);
// TutorialGuideManager.Instance.TriggerNextGuide();
// TutorialGuideManager.Instance.TriggerNextGuide();
// yield return new WaitForSeconds(2);
// TutorialGuideManager.Instance.TriggerNextGuide();
}
// Update is called once per frame
void Update()
{
}
}