11 lines
252 B
GDScript
11 lines
252 B
GDScript
extends CanvasLayer
|
|
|
|
func set_health(health):
|
|
print(health)
|
|
$HealthMarginContainer/HealthBox/HealthLabel.text = str(health)
|
|
|
|
|
|
func _on_score_timer_timeout() -> void:
|
|
Global.score += 100
|
|
$ScoreMarginContainer/ScoreLabel.text = str(Global.score)
|