public void OnStopClient(ClientStoppedReason reason)
 {
     if (!Server.Active)
     {
         StartCoroutine(UnloadClientSubScenes());
     }
 }
Beispiel #2
0
 void OnClientDisconnected(ClientStoppedReason reason)
 {
     SceneManager.LoadSceneAsync(OfflineScene);
 }
Beispiel #3
0
 private void OnClientDisconnected(ClientStoppedReason reason)
 {
     ClearSpawners();
     DestroyAllClientObjects();
     _syncVarReceiver = null;
 }