SDK API reference
Task ConnectAsync()async
Loads the launch manifest, opens the WebSocket, and authenticates the game.
await sdk.ConnectAsync();Task ReadyAsync(string scene)async
Reports that the game is fully loaded and ready for the session.
event Action<VorivoxHit> HitReceivedevent
Raised for a physical target hit. The SDK dispatches it to Unity's main thread.
Task UpdateScoreAsync(VorivoxScore)async
Sends the current score state.
Task CompleteAsync(VorivoxResult)async
Completes the session. Duplicate calls are ignored.
Task TriggerLedAsync(string trigger)async
Runs a system lighting trigger.
v0.5 state and capabilities
| Member | Purpose |
|---|---|
Capabilities | Launcher-confirmed LED, pause/resume and raw-event support |
SessionState | Idle, Starting, Running, Paused, Stopping, Completed |
WaitForSessionStartAsync() | awaitable session start |
LastError | last connection or transport error |
MessageIgnored | invalid or unknown inbound message |