private void Client_Disconnected(object sender, DarkRift.Client.DisconnectedEventArgs e) { isAuthenticated = false; if (isClient) { isClient = false; isConnected = false; OnClientDisconnected?.Invoke(); } }
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(); }