Made the music pause when you open the pause menu
This commit is contained in:
1 parent
c0b309c451
commit
64dcd6358b
3 files changed
+9
-1
No files matched your search
@@ -75,6 +75,10 @@ public partial class Player : Node2D {
|
||||
|
||||
GetNode<CanvasLayer>("/root/Game/CanvasLayer").AddChild(PauseMenuInstance);
|
||||
Globals.IsPaused = true;
|
||||
|
||||
AudioStreamPlayer MusicPlayer = GetNode<AudioStreamPlayer>("/root/Game/MusicPlayer");
|
||||
|
||||
MusicPlayer.StreamPaused = !MusicPlayer.StreamPaused;
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user