Move game signals to EventBus 🚌
This commit is contained in:
parent
eb6f24a389
commit
684e2ece59
4 changed files with 21 additions and 17 deletions
|
|
@ -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)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue