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().OnCurrentActionCompleteEvent += (e) => { Debug.Log("当前动作已完成!"); }; // 订阅当前步骤所有动作完成事件 MotionEngine.GetModule().OnStepActionsCompleteEvent += (e) => { Debug.Log("当前步骤的所有动作已完成!"); }; // MotionEngine.GetModule().JumpToProcessAsync(1, 0); // MotionEngine.GetModule().HandleClick("任务书"); // MotionEngine.GetModule().HandleClick("对话结束"); // Debug.Log(MotionEngine.GetModule().HandleClick(new List({""}))); // Debug.Log(MotionEngine.GetModule().HandleClick("任务书")); // Debug.Log(MotionEngine.GetModule().HandleClick(new List() // { // "陈二","赵六1","HDA1" // })); // Debug.Log(MotionEngine.GetModule().HandleClick(new List() // { // "陈二","赵六","HDA1" // })); // Debug.Log(MotionEngine.GetModule().HandleClick(new List() // { // "2222","3333" // })); // // Debug.Log(MotionEngine.GetModule().HandleClick("pp1p")); // Debug.Log(MotionEngine.GetModule().HandleClick("pp2p")); // Debug.Log(MotionEngine.GetModule().HandleClick("pp3p")); // Debug.Log(MotionEngine.GetModule().HandleClick("ppp")); // Debug.Log(MotionEngine.GetModule().HandleClick("3")); // Debug.Log(MotionEngine.GetModule().HandleClick("ppp")); // Debug.Log(MotionEngine.GetModule().HandleClick("3")); // Debug.Log(MotionEngine.GetModule().HandleClick("33")); // Debug.Log(MotionEngine.GetModule().HandleClick("2")); // Debug.Log(MotionEngine.GetModule().CalculateTotalScore()); // Debug.Log(MotionEngine.GetModule().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() { } }