GlobalEventUnit.cs 374 B

1234567891011121314
  1. namespace Unity.VisualScripting
  2. {
  3. public abstract class GlobalEventUnit<TArgs> : EventUnit<TArgs>
  4. {
  5. protected override bool register => true;
  6. protected virtual string hookName => throw new InvalidImplementationException();
  7. public override EventHook GetHook(GraphReference reference)
  8. {
  9. return hookName;
  10. }
  11. }
  12. }