UI.gd 412 B

123456789101112131415161718192021222324252627
  1. extends Control
  2. onready var game_over_panel = $GameOverPanel
  3. onready var tutorial_panel = $TutorialPanel
  4. func hide_tutorial():
  5. if tutorial_panel:
  6. tutorial_panel.queue_free()
  7. tutorial_panel = null
  8. func show_end_of_game():
  9. game_over_panel.show()
  10. func _on_Catcher_game_over():
  11. show_end_of_game()
  12. func _on_DeadLine_game_lost():
  13. show_end_of_game()
  14. func _on_Launcher_get_firing():
  15. hide_tutorial()