13 lines
265 B
GDScript
13 lines
265 B
GDScript
extends Button
|
|
|
|
var gameplayScene: PackedScene
|
|
|
|
|
|
func _ready() -> void:
|
|
self.button_up.connect(on_button_up)
|
|
|
|
func on_button_up() -> void:
|
|
disabled = true
|
|
gameplayScene = load("res://Scenes/gameplay_scene.tscn")
|
|
get_tree().change_scene_to_packed(gameplayScene)
|