Properly connect pause menu to pause commands
This commit is contained in:
parent
26089afdbb
commit
6a547258d3
|
@ -20,7 +20,8 @@ func _process(delta):
|
|||
blink_time = 0.0
|
||||
label.visible = !label.visible
|
||||
|
||||
func _on_game_paused():
|
||||
visible = true
|
||||
label.visible = true
|
||||
blink_time = 0
|
||||
func _on_game_pause_toggled(paused: bool):
|
||||
if paused:
|
||||
visible = true
|
||||
label.visible = true
|
||||
blink_time = 0
|
||||
|
|
|
@ -278,4 +278,5 @@ script = ExtResource("24_6ypry")
|
|||
[connection signal="attack_did_hit" from="ReedAI" to="HiroPlayer" method="_on_enemy_attack_did_hit"]
|
||||
[connection signal="defeated" from="ReedAI" to="." method="_on_ai_defeated"]
|
||||
[connection signal="got_hurt" from="ReedAI" to="CanvasLayer/BattleUI" method="_on_enemy_got_hurt"]
|
||||
[connection signal="game_pause_toggled" from="GameState" to="PauseMenu" method="_on_game_pause_toggled"]
|
||||
[connection signal="game_pause_toggled" from="GameState" to="SoundManager" method="_on_game_pause_toggled"]
|
||||
|
|
Loading…
Reference in a new issue