Fix being able to edit the ui when not paused

This commit is contained in:
2025-06-25 13:36:12 -07:00
parent 866661f32a
commit 62c339f09a
2 changed files with 20 additions and 10 deletions

View File

@@ -715,6 +715,7 @@ public class GamePlayer : MonoBehaviour
Cursor.lockState = CursorLockMode.Locked;
backgroundMusic.Play();
pausePanel.SetActive(false);
if (GamePlayerPauseMenu.Instance.editingUI == true) GamePlayerPauseMenu.Instance.ToggleEditingUI();
}
void OnApplicationPause(bool pause)