Refactor GameManager and PlayerDeathComponent for improved state management and logging; update scene connections for player death handling
This commit is contained in:
@@ -22,8 +22,15 @@ public partial class AudioSettings : Control
|
||||
MasterVolumeSlider.ValueChanged += OnMasterVolumeChanged;
|
||||
MusicVolumeSlider.ValueChanged += OnMusicVolumeChanged;
|
||||
SfxVolumeSlider.ValueChanged += OnSfxVolumeChanged;
|
||||
|
||||
LoadSettings();
|
||||
}
|
||||
|
||||
|
||||
public override void _ExitTree()
|
||||
{
|
||||
SaveSettings();
|
||||
}
|
||||
|
||||
public override void _UnhandledInput(InputEvent @event)
|
||||
{
|
||||
if (!@event.IsActionReleased("ui_cancel")) return;
|
||||
|
1
scripts/UI/DeathScreen.cs.uid
Normal file
1
scripts/UI/DeathScreen.cs.uid
Normal file
@@ -0,0 +1 @@
|
||||
uid://csprksav8mj1h
|
@@ -26,10 +26,10 @@ public partial class SettingsMenu : Control
|
||||
DisplaySettingsButton.Pressed += OnDisplaySettingsPressed;
|
||||
GameplaySettingsButton.Pressed += OnGameplaySettingsPressed;
|
||||
|
||||
InputSettingsControl.Hide();
|
||||
AudioSettingsControl.Hide();
|
||||
DisplaySettingsControl.Hide();
|
||||
GameplaySettingsControl.Hide();
|
||||
InputSettingsControl?.Hide();
|
||||
AudioSettingsControl?.Hide();
|
||||
DisplaySettingsControl?.Hide();
|
||||
GameplaySettingsControl?.Hide();
|
||||
}
|
||||
|
||||
public override void _UnhandledInput(InputEvent @event)
|
||||
|
Reference in New Issue
Block a user