Move game signals to EventBus 🚌

This commit is contained in:
Jennie Robinson Faber 2026-05-09 19:04:33 +01:00
parent eb6f24a389
commit 684e2ece59
4 changed files with 21 additions and 17 deletions

View file

@ -6,6 +6,11 @@ func _ready():
$StatsColumn/PeopleLabel.text = "PEOPLE: 0/2"
$StatsColumn/ScoreLabel.text = "SCORE: 0"
EventBus.floor_changed.connect(update_floor)
EventBus.saved_changed.connect(update_saved)
EventBus.people_changed.connect(update_people)
EventBus.score_changed.connect(update_score)
func update_floor(floor_num: int):
$StatsColumn/FloorLabel.text = "FLOOR: " + str(floor_num)