diff options
Diffstat (limited to 'Scenes/UIController.gd')
-rw-r--r-- | Scenes/UIController.gd | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Scenes/UIController.gd b/Scenes/UIController.gd index 02312d1..353c434 100644 --- a/Scenes/UIController.gd +++ b/Scenes/UIController.gd @@ -4,12 +4,16 @@ onready var main_camera = get_viewport().get_camera() onready var ScoreParticle = preload("res://Scenes/ScoreParticle.tscn") onready var particles = $Particles +onready var activated_crystals + func _ready(): Global.connect("update_ui", self, "_on_update_ui") + yield(get_tree(),"idle_frame") _on_update_ui() func _on_update_ui(): $NumberOfTurns.text = "Turns left: %d" % Global.turns + $Objectives.text = "(%d/%d) Activate the crystals!" % [Global.active_crystals, Global.max_crystals] func on_monster_killed(monster_pos, score): for i in range(score): |