diff options
Diffstat (limited to 'Scenes/UIController.gd')
-rw-r--r-- | Scenes/UIController.gd | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/Scenes/UIController.gd b/Scenes/UIController.gd new file mode 100644 index 0000000..1599d03 --- /dev/null +++ b/Scenes/UIController.gd @@ -0,0 +1,8 @@ +extends CanvasLayer + +func _ready(): + Global.connect("update_ui", self, "_on_update_ui") + _on_update_ui() + +func _on_update_ui(): + $NumberOfTurns.text = "Number of turns: %d" % Global.turns |