Skip to content

Commit 8a4f6a3

Browse files
committed
events: Added OnPlayerStarted event
1 parent 5bb7d81 commit 8a4f6a3

File tree

2 files changed

+33
-0
lines changed

2 files changed

+33
-0
lines changed
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
using System;
2+
using Unity.VisualScripting;
3+
4+
namespace VisualPinball.Unity.VisualScripting
5+
{
6+
[UnitTitle("On Player Started Event")]
7+
[UnitCategory("Events\\Visual Pinball")]
8+
public sealed class PlayerStartedEventUnit : EventUnit<EventArgs>
9+
{
10+
protected override bool register => true;
11+
12+
public override EventHook GetHook(GraphReference reference)
13+
{
14+
return new EventHook(EventNames.PlayerStartedEvent);
15+
}
16+
17+
protected override void Definition()
18+
{
19+
base.Definition();
20+
}
21+
}
22+
}

Runtime/Events/Nodes/PlayerStartedEventUnit.cs.meta

Lines changed: 11 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)