14 lines
453 B
C#
14 lines
453 B
C#
using Godot;
|
|
|
|
public partial class PauseMenuContinueButton : Button {
|
|
public void _on_button_up() {
|
|
AudioStreamPlayer MusicPlayer = GetNode<AudioStreamPlayer>("/root/Game/MusicPlayer");
|
|
|
|
MusicPlayer.StreamPaused = !MusicPlayer.StreamPaused;
|
|
|
|
Globals.IsPaused = false;
|
|
GetNode<Control>("../..").QueueFree();
|
|
|
|
if (Utils.IsMobile()) GetNode<Node2D>("/root/Game/CanvasLayer/MobileButtons").Visible = true;
|
|
}
|
|
} |