@@ -417,7 +417,7 @@ public class RemoteRenderingCoordinator : MonoBehaviour
417
417
// Implement me
418
418
}
419
419
420
- public void StopRemoteSession ()
420
+ public async void StopRemoteSession ()
421
421
{
422
422
// Implement me
423
423
}
@@ -451,7 +451,7 @@ public class RemoteRenderingCoordinator : MonoBehaviour
451
451
/// <summary >
452
452
/// Connects the local runtime to the current active session, if there's a session available
453
453
/// </summary >
454
- public void ConnectRuntimeToRemoteSession ()
454
+ public async void ConnectRuntimeToRemoteSession ()
455
455
{
456
456
// Implement me
457
457
}
@@ -649,11 +649,11 @@ public async void JoinRemoteSession()
649
649
}
650
650
}
651
651
652
- public void StopRemoteSession ()
652
+ public async void StopRemoteSession ()
653
653
{
654
654
if (ARRSessionService .CurrentActiveSession != null )
655
655
{
656
- ARRSessionService .CurrentActiveSession .StopAsync ();
656
+ await ARRSessionService .CurrentActiveSession .StopAsync ();
657
657
}
658
658
}
659
659
```
@@ -678,20 +678,19 @@ The application also needs to listen for events about the connection between the
678
678
/// <summary >
679
679
/// Connects the local runtime to the current active session, if there's a session available
680
680
/// </summary >
681
- public void ConnectRuntimeToRemoteSession ()
681
+ public async void ConnectRuntimeToRemoteSession ()
682
682
{
683
683
if (ARRSessionService == null || ARRSessionService .CurrentActiveSession == null )
684
684
{
685
685
Debug .LogError (" Not ready to connect runtime" );
686
686
return ;
687
687
}
688
688
689
- // Connect the local runtime to the currently connected session
690
- // This session is set when connecting to a new or existing session
689
+ // Connect the local runtime to the currently connected session
690
+ // This session is set when connecting to a new or existing session
691
691
692
692
ARRSessionService .CurrentActiveSession .ConnectionStatusChanged += OnLocalRuntimeStatusChanged ;
693
- ARRSessionService .CurrentActiveSession .ConnectAsync (new RendererInitOptions ());
694
- CurrentCoordinatorState = RemoteRenderingState .ConnectingToRuntime ;
693
+ await ARRSessionService .CurrentActiveSession .ConnectAsync (new RendererInitOptions ());
695
694
}
696
695
697
696
public void DisconnectRuntimeFromRemoteSession ()
0 commit comments