private void Client_Disconnected(object sender, DarkRift.Client.DisconnectedEventArgs e)
 {
     isAuthenticated = false;
     if (isClient)
     {
         isClient    = false;
         isConnected = false;
         OnClientDisconnected?.Invoke();
     }
 }
示例#2
0
 private void Client_Disconnected(object sender, DarkRift.Client.DisconnectedEventArgs e)
 {
     isAuthenticated = false;
     if (isClient)
     {
         isClient    = false;
         isConnected = false;
         OnClientDisconnected?.Invoke();
         //TTMessagePopup.Singleton.DisplayPopup(TTMessagePopup.PopupTitle.Error, TTMessagePopup.PopupMessage.Reconnect, TTMessagePopup.PopupResponse.YesNo);
     }
 }
 private void HandleDisconnected(object sender, DarkRift.Client.DisconnectedEventArgs e)
 {
     SceneManager.LoadScene(1, LoadSceneMode.Single);
     _gameCycle.RaiseOnGameEnded();
 }