1
0
Fork 0
LaboratoryProtection/Assets/UnityTest/ZXL/Scripts/Process/ProcessManager.cs

27 lines
651 B
C#

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;
}
}
}