GlobalGameJame/Library/PackageCache/com.unity.timeline@1.2.10/Runtime/Events/Signals/SignalAsset.cs
JonatanRek bea2dce063 Initial
test
2020-01-31 16:10:04 +01:00

23 lines
634 B
C#

using System;
using UnityEngine;
namespace UnityEngine.Timeline
{
/// <summary>
/// An asset representing an emitted signal. A SignalAsset connects a SignalEmitter with a SignalReceiver.
/// </summary>
/// <seealso cref="UnityEngine.Timeline.SignalEmitter"/>
/// <seealso cref="UnityEngine.Timeline.SignalReceiver"/>
[AssetFileNameExtension("signal")]
public class SignalAsset : ScriptableObject
{
internal static event Action<SignalAsset> OnEnableCallback;
void OnEnable()
{
if (OnEnableCallback != null)
OnEnableCallback(this);
}
}
}