forked from zxl/LaboratoryProtection
27 lines
651 B
C#
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;
|
|
|
|
}
|
|
}
|
|
} |