reconnect, 30% fixes from test feedback

This commit is contained in:
2026-05-01 18:56:37 +05:30
parent 1da7c052f8
commit e3aa51d3e7
383 changed files with 41074 additions and 98 deletions
+7 -2
View File
@@ -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");
}