Fix a issue with being able to play in the stats menu popup

This commit is contained in:
Lncvrt committed 2025-10-11 13:25:37 -07:00
1 parent 07b555bbc6
commit 2e93c6d131
2 files changed
+10

No files matched your search

+5
View File
@@ -696,6 +696,11 @@ public class GamePlayer : MonoBehaviour
internal void TogglePause()
{
if (GamePlayerPauseMenu.Instance != null && GamePlayerPauseMenu.Instance.statsMenu.activeSelf)
{
GamePlayerPauseMenu.Instance.statsMenuExitButton.onClick.Invoke();
return;
}
if (pausePanel.activeSelf)
{
DisablePause();