mirror of
https://git.kittycat.homes/zoe/pegchamp.git
synced 2024-08-15 03:15:39 +00:00
11 lines
306 B
GDScript
11 lines
306 B
GDScript
extends TextureButton
|
|
|
|
export var scene = "res://Menu/MainMenu.tscn"
|
|
|
|
func _on_LevelSelectIconButton_pressed():
|
|
disabled = true
|
|
var main = get_tree().current_scene
|
|
var Fadeout = load("res://Effects/FadeOut.tscn")
|
|
var fadeout = Fadeout.instance()
|
|
fadeout.scene_to_load = scene
|
|
main.add_child(fadeout)
|