mirror of
https://github.com/thegatesbrowser/thegates.git
synced 2025-08-24 11:17:26 -04:00
fix onboarding event
This commit is contained in:
parent
941e214499
commit
9598ec94f0
4 changed files with 16 additions and 6 deletions
|
@ -15,6 +15,7 @@ var is_special: bool
|
|||
|
||||
func _ready() -> void:
|
||||
button.pressed.connect(on_pressed)
|
||||
ui_events.onboarding_requested.connect(update_special_effects)
|
||||
ui_events.onboarding_started.connect(update_special_effects)
|
||||
ui_events.onboarding_finished.connect(update_special_effects)
|
||||
|
||||
|
@ -34,7 +35,7 @@ func fill(gate: Gate) -> void:
|
|||
|
||||
|
||||
func update_special_effects() -> void:
|
||||
if ui_events.is_onboarding_started:
|
||||
if ui_events.is_onboarding_started or ui_events.is_onboarding_requested:
|
||||
special_effect.visible = false
|
||||
jump_animation.stop_jump_animation()
|
||||
return
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue