This commit is contained in:
Jennie Robinson Faber 2026-05-10 23:56:09 +01:00
parent 7ce2863cfd
commit e216364ec1
12 changed files with 84 additions and 71 deletions

View file

@ -4,10 +4,9 @@ var _enabled := false
func _ready():
visible = false
EventBus.game_started.connect(_on_game_started)
func _on_game_started():
_enabled = true
EventBus.game_started.connect(func(): _enabled = true)
EventBus.game_won.connect(func(): _enabled = false)
EventBus.game_lost.connect(func(_reason: String): _enabled = false)
func _unhandled_input(event):
if not _enabled: