10 lines
286 B
GDScript
10 lines
286 B
GDScript
extends Button
|
|
|
|
const scene_server_path : String = "res://scenes/page_choisir_server.tscn"
|
|
|
|
func _ready():
|
|
ResourceLoader.load_threaded_request(scene_server_path)
|
|
self.pressed.connect(_on_button_pressed)
|
|
|
|
func _on_button_pressed():
|
|
get_tree().change_scene_to_file(scene_server_path)
|