Problem
This script has no effect:

This script causes the ball to spawn:

Cause
What should happen is:
Player.Start is called by Unity
CoilPlayer.OnStart is called
CoilPlayer.HandleCoilEvent is added as a callback to IGameLogicEngine.OnCoilChanged
- The table script starts running and the "Pulse Coil" node is executed
- The ball spawns
The problem is that the table script starts running before Player.Start is called and nothing happens because CoilPlayer.HandleCoilEvent does not yet observe IGameLogicEngine.OnCoilChanged. This might be non-deterministic as well because the order of in which Start is called on MonoBehaviours is. Not sure how it is in Visual Scripting.
Problem
This script has no effect:


This script causes the ball to spawn:
Cause
What should happen is:
Player.Startis called by UnityCoilPlayer.OnStartis calledCoilPlayer.HandleCoilEventis added as a callback toIGameLogicEngine.OnCoilChangedThe problem is that the table script starts running before
Player.Startis called and nothing happens becauseCoilPlayer.HandleCoilEventdoes not yet observeIGameLogicEngine.OnCoilChanged. This might be non-deterministic as well because the order of in whichStartis called on MonoBehaviours is. Not sure how it is in Visual Scripting.