using System; using Mono.Event; using UnityEngine; namespace UnityTest.ZXL { public class ProcessManager: MonoBehaviour { private int processIndex; private void Awake() { EventManager.Instance.Subscribe(PlayableStoppedEventArgs.EventId,PlayableStoppedEvent); } private void OnDestroy() { EventManager.Instance.Unsubscribe(PlayableStoppedEventArgs.EventId,PlayableStoppedEvent); } private void PlayableStoppedEvent(object sender, GameEventArgs e) { var args = e as PlayableStoppedEventArgs; } } }