Files
SHOUTING_PIRATE 4c8592d0ab initial commit
2025-08-05 09:30:40 +01:00

15 lines
451 B
C#

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}'.");
}
}