Skip to content

Commit 7fdaa7f

Browse files
arthurkehrwaldfreezy
authored andcommitted
Accept cancellation token in OnInit
1 parent 33f9543 commit 7fdaa7f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Runtime/Gamelogic/VisualScriptingGamelogicEngine.cs

+2-1
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
using UnityEngine;
2424
using VisualPinball.Engine.Game.Engines;
2525
using System.Threading.Tasks;
26+
using System.Threading;
2627

2728
namespace VisualPinball.Unity.VisualScripting
2829
{
@@ -142,7 +143,7 @@ public void DestroyPlayerStates()
142143
_currentPlayer = 0;
143144
}
144145

145-
public Task OnInit(Player player, TableApi tableApi, BallManager ballManager)
146+
public Task OnInit(Player player, TableApi tableApi, BallManager ballManager, CancellationToken ct)
146147
{
147148
_player = player;
148149
BallManager = ballManager;

0 commit comments

Comments
 (0)