extends Control @onready var option_popup = $OptionPopup func _ready(): $TextureRect/start.connect("pressed", Callable(self, "_on_start_pressed")) $TextureRect/exit.connect("pressed", Callable(self, "_on_exit_pressed")) $TextureRect/option.connect("pressed", Callable(self, "_on_Opcje_pressed")) func _on_Opcje_pressed(): option_popup.popup_centered() func _on_start_pressed(): Manager.game_time = 0.0 get_tree().change_scene_to_file("res://scenes/galaxy.tscn") MusicManager.play_music() func _on_exit_pressed(): get_tree().quit()