File size: 451 Bytes
18a519f | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 | namespace Unity.VisualScripting
{
public abstract class MachineEventUnit<TArgs> : EventUnit<TArgs>
{
protected sealed override bool register => true;
public override EventHook GetHook(GraphReference reference)
{
return new EventHook(hookName, reference.machine);
}
protected virtual string hookName => throw new InvalidImplementationException($"Missing event hook for '{this}'.");
}
}
|