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("当前步骤的所有动作已完成!"); }; } }