AbstractAffection/Scripts/start_game.gd
2025-02-15 19:20:49 +01:00

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)