Skip to content

Commit

Permalink
Make sure to disable HUD edit mode when resuming
Browse files Browse the repository at this point in the history
  • Loading branch information
EliteAsian123 committed Jul 31, 2024
1 parent 5f54598 commit 830cf5a
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions Assets/Script/Gameplay/GameManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -198,11 +198,7 @@ private void Update()
// Pause/unpause
if (Keyboard.current.escapeKey.wasPressedThisFrame)
{
if (_draggableHud.EditMode)
{
SetEditHUD(false);
}
else if (!IsPractice || PracticeManager.HasSelectedSection)
if (!IsPractice || PracticeManager.HasSelectedSection)
{
SetPaused(!_pauseMenu.IsOpen);
}
Expand Down Expand Up @@ -382,6 +378,11 @@ public void Pause(bool showMenu = true)

public void Resume(bool inputCompensation = true)
{
if (_draggableHud.EditMode)
{
SetEditHUD(false);
}

_pauseMenu.PopAllMenus();
if (_songRunner.SongTime >= SongLength + SONG_END_DELAY)
{
Expand Down

0 comments on commit 830cf5a

Please sign in to comment.