rematch use the same leave function, added a grace period for connection disconnect

This commit is contained in:
2026-05-17 14:50:28 +05:30
parent 5d2eb3aaea
commit aa924c71dc
4 changed files with 200 additions and 28 deletions
+1 -2
View File
@@ -530,8 +530,7 @@ public class NetPlayer : NetworkBehaviour
Cupid.RoomPort = branch.Port;
LoginManager.SetMatchYourTeam(branch.your_team);
GameManager.instance.StopClient();
LevelLoadManager.LoadLevel("Game");
GameManager.instance.Leave("Game");
}
void OnRematchCancelledServer(){