Tidy UP!
This commit is contained in:
parent
7ce2863cfd
commit
e216364ec1
12 changed files with 84 additions and 71 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue