No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

MachineEventUnit.cs 451B

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