Пример #1
0
 private void uLink_OnFailedToConnect(uLink.NetworkConnectionError ulink_error)
 {
     if (this.levelLoader)
     {
         UnityEngine.Object.Destroy(this.levelLoader);
     }
     if (!MainMenu.singleton)
     {
         NetError netError = ulink_error.ToNetError();
         if (netError != NetError.NoError)
         {
             UnityEngine.Debug.LogError(netError.NiceString());
         }
     }
     try
     {
         DisableOnConnectedState.OnDisconnected();
     }
     finally
     {
         UnityEngine.Object.Destroy(base.gameObject);
     }
 }
Пример #2
0
 private void uLink_OnFailedToConnect(uLink.NetworkConnectionError ulink_error)
 {
     this.LogDisconnect(ulink_error.ToNetError(), null);
     DisableOnConnectedState.OnDisconnected();
     ConsoleSystem.Run("gameui.show", false);
     this.LoadBackground();
     if (ulink_error.ToNetError() == NetError.NoError)
     {
         this.ShowInformation("Failed to connect.");
     }
     else
     {
         this.ShowInformation(string.Concat("Failed to connect (", ulink_error.ToNetError().ToString(), ")"));
     }
     LoadingScreen.Hide();
 }