File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
VisualPinball.Engine.PinMAME.Unity/Runtime Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -36,7 +36,7 @@ namespace VisualPinball.Engine.PinMAME
36
36
[ Serializable ]
37
37
[ DisallowMultipleComponent ]
38
38
[ RequireComponent ( typeof ( AudioSource ) ) ]
39
- [ AddComponentMenu ( "Visual Pinball/Game Logic Engine/PinMAME" ) ]
39
+ [ AddComponentMenu ( "Visual Pinball/Gamelogic Engine/PinMAME" ) ]
40
40
public class PinMameGamelogicEngine : MonoBehaviour , IGamelogicEngine
41
41
{
42
42
public string Name { get ; } = "PinMAME Gamelogic Engine" ;
@@ -87,6 +87,7 @@ public GamelogicEngineLamp[] AvailableLamps {
87
87
public event EventHandler < LampColorEventArgs > OnLampColorChanged ;
88
88
public event EventHandler < AvailableDisplays > OnDisplaysAvailable ;
89
89
public event EventHandler < DisplayFrameData > OnDisplayFrame ;
90
+ public event EventHandler < EventArgs > OnStarted ;
90
91
91
92
[ NonSerialized ] private Player _player ;
92
93
[ NonSerialized ] private PinMame . PinMame _pinMame ;
@@ -214,6 +215,10 @@ private void OnGameStarted()
214
215
SendMechs ( ) ;
215
216
216
217
_solenoidDelayStart = DateTimeOffset . Now . ToUnixTimeMilliseconds ( ) ;
218
+
219
+ lock ( _dispatchQueue ) {
220
+ _dispatchQueue . Enqueue ( ( ) => OnStarted ? . Invoke ( this , EventArgs . Empty ) ) ;
221
+ }
217
222
}
218
223
219
224
private void Update ( )
You can’t perform that action at this time.
0 commit comments