Block escape/tab menu while loading locally (join sync + Loading phase)

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
adminandClaude Fable 5 committed 2026-07-12 15:30:31 +02:00
1 parent cab7590774
commit 782c3b4381
2 files changed
+31

No files matched your search

@@ -103,6 +103,10 @@ public class OverviewMenu : MonoBehaviour
matchResultScreen.Close();
else if (_open)
Close(resume: true);
// Loading (joining a session, or the pre-match Loading barrier): the scene/avatar is mid-setup,
// pausing or switching modes here corrupts the camera rigs - Esc/Tab do nothing.
else if (MatchManager.Instance && MatchManager.Instance.IsLoadingLocally)
{ }
// Paint mode: Esc exits back to the camera mode instead of opening the menu. Player Control
// first; the hunter's role-scoped set has none, so it falls through to First Person.
else if (gameMode && gameMode.EffectiveMode is PaintMode)