Update quick-start.md
Use getUserData instead of state directly, now that it works as of 4.0.7 in OnInitialStatepull/1/head
parent
d3c5a582ad
commit
df5946e0a6
|
|
@ -139,11 +139,11 @@ public class VelConnectDemo1 : MonoBehaviour
|
||||||
|
|
||||||
ExampleJSON dataToPersist = null;
|
ExampleJSON dataToPersist = null;
|
||||||
|
|
||||||
private IEnumerator Start()
|
IEnumerator Start()
|
||||||
{
|
{
|
||||||
VELConnectManager.OnInitialState += (state) =>
|
VELConnectManager.OnInitialState += (state) =>
|
||||||
{
|
{
|
||||||
var s = state.device.TryGetData("mydata");
|
var s = VELConnectManager.GetUserData("mydata");
|
||||||
Debug.Log("Retrieved: " + s);
|
Debug.Log("Retrieved: " + s);
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
|
|
@ -176,4 +176,5 @@ public class VelConnectDemo1 : MonoBehaviour
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
```
|
```
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue