aboutsummaryrefslogtreecommitdiffstats
path: root/HealthBar.gd
diff options
context:
space:
mode:
Diffstat (limited to 'HealthBar.gd')
-rw-r--r--HealthBar.gd4
1 files changed, 2 insertions, 2 deletions
diff --git a/HealthBar.gd b/HealthBar.gd
index ab9c68b..91a5b8e 100644
--- a/HealthBar.gd
+++ b/HealthBar.gd
@@ -4,11 +4,11 @@ extends ProgressBar
# Declare member variables here. Examples:
# var a = 2
# var b = "text"
-
+signal player_dead
# Called when the node enters the scene tree for the first time.
func _ready():
- pass # Replace with function body.
+ connect("player_dead", get_node("/root/Main/HUD/Wordart"), "_on_player_dead")
# Called every frame. 'delta' is the elapsed time since the previous frame.