Update quick-start.md

Use getUserData instead of state directly, now that it works as of 4.0.7 in OnInitialState
pull/1/head
kjjohnsen 2024-03-07 14:57:27 -05:00 committed by GitHub
parent d3c5a582ad
commit df5946e0a6
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 3 additions and 2 deletions

View File

@ -139,11 +139,11 @@ public class VelConnectDemo1 : MonoBehaviour
ExampleJSON dataToPersist = null;
private IEnumerator Start()
IEnumerator Start()
{
VELConnectManager.OnInitialState += (state) =>
{
var s = state.device.TryGetData("mydata");
var s = VELConnectManager.GetUserData("mydata");
Debug.Log("Retrieved: " + s);
try
{
@ -176,4 +176,5 @@ public class VelConnectDemo1 : MonoBehaviour
}
```