Code: Select all
smartFoxClient.AddEventListener(SFSEvent.CONNECTION_RETRY, OnConnectionRetry);
smartFoxClient.AddEventListener(SFSEvent.CONNECTION_RESUME, OnConnectionResume);
Code: Select all
void OnConnectionRetry(BaseEvent evt) {
Debug.Log("Connection retry");
// Freeze your GUI and provide some feedback to the Player
}
void OnConnectionResume(BaseEvent evt) {
Debug.Log("Connection resume");
// Unfreeze the GUI and let the player continue with the game...
}
