@@ -436,7 +436,7 @@ public class RemoteRenderingCoordinator : MonoBehaviour
436
436
// Implement me
437
437
}
438
438
439
- public void StopRemoteSession ()
439
+ public async void StopRemoteSession ()
440
440
{
441
441
// Implement me
442
442
}
@@ -470,7 +470,7 @@ public class RemoteRenderingCoordinator : MonoBehaviour
470
470
/// <summary >
471
471
/// Connects the local runtime to the current active session, if there's a session available
472
472
/// </summary >
473
- public void ConnectRuntimeToRemoteSession ()
473
+ public async void ConnectRuntimeToRemoteSession ()
474
474
{
475
475
// Implement me
476
476
}
@@ -668,11 +668,11 @@ public async void JoinRemoteSession()
668
668
}
669
669
}
670
670
671
- public void StopRemoteSession ()
671
+ public async void StopRemoteSession ()
672
672
{
673
673
if (ARRSessionService .CurrentActiveSession != null )
674
674
{
675
- ARRSessionService .CurrentActiveSession .StopAsync ();
675
+ await ARRSessionService .CurrentActiveSession .StopAsync ();
676
676
}
677
677
}
678
678
```
@@ -697,20 +697,19 @@ The application also needs to listen for events about the connection between the
697
697
/// <summary >
698
698
/// Connects the local runtime to the current active session, if there's a session available
699
699
/// </summary >
700
- public void ConnectRuntimeToRemoteSession ()
700
+ public async void ConnectRuntimeToRemoteSession ()
701
701
{
702
702
if (ARRSessionService == null || ARRSessionService .CurrentActiveSession == null )
703
703
{
704
704
Debug .LogError (" Not ready to connect runtime" );
705
705
return ;
706
706
}
707
707
708
- // Connect the local runtime to the currently connected session
709
- // This session is set when connecting to a new or existing session
708
+ // Connect the local runtime to the currently connected session
709
+ // This session is set when connecting to a new or existing session
710
710
711
711
ARRSessionService .CurrentActiveSession .ConnectionStatusChanged += OnLocalRuntimeStatusChanged ;
712
- ARRSessionService .CurrentActiveSession .ConnectAsync (new RendererInitOptions ());
713
- CurrentCoordinatorState = RemoteRenderingState .ConnectingToRuntime ;
712
+ await ARRSessionService .CurrentActiveSession .ConnectAsync (new RendererInitOptions ());
714
713
}
715
714
716
715
public void DisconnectRuntimeFromRemoteSession ()
0 commit comments