Beispiel #1
0
 public void HandleStreamsForUser(SpeckleStream[] streamIDs)
 {
     if (streamIDs != null)
     {
         manager.AddReceiverAsync(streamIDs[0].StreamId, null, true);
     }
 }
        public IEnumerator OnStartLoginAndReceiveStreamsSuccess()
        {
            Transform root = new GameObject().transform;

            manager.onStartBehaviour   = StartMode.LoginAndReceiveStreams;
            manager.startLoginEmail    = workingCredentials.email;
            manager.startLoginPassword = workingCredentials.password;

            yield return(AsyncTest.Execute(manager.AddReceiverAsync(workingCredentials.streamID, root)));

            yield return(AsyncTest.Execute(manager.RunStartBehaviourAsync()));

            Assert.True(root.childCount > 0);
            Assert.NotNull(manager.loggedInUser);
            Assert.NotNull(manager.loggedInUser.Apitoken);
        }