Fix a issue with being able to play in the stats menu popup
This commit is contained in:
@@ -681,6 +681,11 @@ public class CustomGamePlayer : MonoBehaviour
|
||||
|
||||
internal void TogglePause()
|
||||
{
|
||||
if (CustomGamePlayerPauseMenu.Instance != null && CustomGamePlayerPauseMenu.Instance.statsMenu.activeSelf)
|
||||
{
|
||||
CustomGamePlayerPauseMenu.Instance.statsMenuExitButton.onClick.Invoke();
|
||||
return;
|
||||
}
|
||||
if (pausePanel.activeSelf)
|
||||
{
|
||||
DisablePause();
|
||||
|
||||
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user