You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
PopupPanel.ShowPopupPanel("Connection Failed","You have logged in elsewhere using the same account.");
50
50
break;
51
51
caseConnectStatus.GenericDisconnect:
52
-
PopupPanel.ShowPopupPanel("Disconnected From Host","The connection to the host was lost");
52
+
PopupPanel.ShowPopupPanel("Disconnected From Host","The connection to the host was lost.");
53
53
break;
54
54
caseConnectStatus.Reconnecting:
55
55
m_PopupIdToClose=PopupPanel.ShowPopupPanel("Attempting reconnection","Lost connection to the Host, attempting to reconnect...",isCloseableByUser:false);
56
56
break;
57
+
caseConnectStatus.HostDisconnected:
58
+
PopupPanel.ShowPopupPanel("Disconnected From Host","The host has ended the game session.");
59
+
break;
57
60
default:
58
61
Debug.LogWarning($"New ConnectStatus {status} has been added, but no connect message defined for it.");
yieldreturnnewWaitForSeconds(1.1f*k_TimeoutDuration);// wait a bit longer than the timeout duration to make sure we have enough time to stop this coroutine if successful
182
197
nbTries++;
183
198
}
184
199
185
-
if(!NetworkManager.Singleton.IsConnectedClient)
200
+
// If the coroutine has not been stopped before this, it means we failed to connect during all attempts
201
+
Debug.Log("All tries failed, returning to main menu");
0 commit comments