Skip to content

Commit 43e19f9

Browse files
committed
Remove target from pinball event.
1 parent a4fc312 commit 43e19f9

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

Runtime/Nodes/Event/PinballEventUnit.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -71,9 +71,9 @@ protected override void AssignArguments(Flow flow, PinballEventArgs args)
7171
}
7272
}
7373

74-
public static void Trigger(GameObject target, string id, params object[] args)
74+
public static void Trigger(string id, params object[] args)
7575
{
76-
EventBus.Trigger(VisualScriptingEventNames.PinballEvent, target, new PinballEventArgs(id, args));
76+
EventBus.Trigger(VisualScriptingEventNames.PinballEvent, new PinballEventArgs(id, args));
7777
}
7878
}
7979

Runtime/Nodes/Event/TriggerPinballEventUnit.cs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -74,13 +74,8 @@ protected override void Definition()
7474

7575
private ControlOutput Trigger(Flow flow)
7676
{
77-
if (!AssertVsGle(flow)) {
78-
Debug.LogError("Cannot find GLE.");
79-
return OutputTrigger;
80-
}
81-
8277
var args = Arguments.Select(flow.GetConvertedValue).ToArray();
83-
PinballEventUnit.Trigger(VsGle.gameObject, Event.Id, args);
78+
PinballEventUnit.Trigger(Event.Id, args);
8479

8580
return OutputTrigger;
8681
}

0 commit comments

Comments
 (0)