reconnect, 30% fixes from test feedback
This commit is contained in:
@@ -81,10 +81,12 @@ public class GameCanvas : MonoBehaviour
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
try{
|
||||
redName.text = GameManager.RedPlayer.Name;
|
||||
blueName.text = GameManager.BluePlayer.Name;
|
||||
|
||||
}catch{
|
||||
Logger.Log("Failed to fetch red and blue names, isServer?");
|
||||
}
|
||||
}
|
||||
|
||||
void OnEmoteTextPressed(string txtName){
|
||||
@@ -164,7 +166,10 @@ public class GameCanvas : MonoBehaviour
|
||||
LoginManager.ClearMatchYourTeam();
|
||||
|
||||
if (NetworkManager.singleton != null && NetworkClient.active)
|
||||
{
|
||||
NetManager.MarkIntentionalClientDisconnect();
|
||||
NetworkManager.singleton.StopClient();
|
||||
}
|
||||
|
||||
LevelLoadManager.LoadLevel("MainMenu");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user