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
PopupManager.ShowPopupPanel("Disconnected From Host","The host has ended the game session.");
59
62
break;
60
63
caseConnectStatus.Reconnecting:
61
-
m_CurrentPopup=PopupManager.ShowPopupPanel("Connection lost","Attempting to reconnect...",closeableByUser:false);
62
64
break;
63
65
default:
64
66
Debug.LogWarning($"New ConnectStatus {status} has been added, but no connect message defined for it.");
65
67
break;
66
68
}
67
69
}
70
+
71
+
voidOnReconnectMessage(ReconnectMessagemessage)
72
+
{
73
+
if(message.CurrentAttempt==message.MaxAttempt)
74
+
{
75
+
m_CurrentReconnectPopup.Hide();
76
+
m_CurrentReconnectPopup=null;
77
+
}
78
+
elseif(m_CurrentReconnectPopup!=null)
79
+
{
80
+
m_CurrentReconnectPopup.SetupPopupPanel("Connection lost",$"Attempting to reconnect...\nAttempt {message.CurrentAttempt+1}/{message.MaxAttempt}",closeableByUser:false);
81
+
}
82
+
else
83
+
{
84
+
m_CurrentReconnectPopup=PopupManager.ShowPopupPanel("Connection lost",$"Attempting to reconnect...\nAttempt {message.CurrentAttempt+1}/{message.MaxAttempt}",closeableByUser:false);
0 commit comments