19 lines
426 B
GDScript3
19 lines
426 B
GDScript3
extends Control
|
|
|
|
|
|
# Declare member variables here. Examples:
|
|
# var a = 2
|
|
# var b = "text"
|
|
|
|
|
|
# Called when the node enters the scene tree for the first time.
|
|
func _ready():
|
|
MusicController.play_intro_snow()
|
|
|
|
for button in $Menu/CenterRow/Buttons.get_children():
|
|
button.connect("pressed", self, "_on_Button_pressed", [button.scene_to_load])
|
|
|
|
func _on_Button_pressed(scene_to_load):
|
|
get_tree().change_scene(scene_to_load)
|
|
|