mirror of
https://git.kittycat.homes/zoe/pegchamp.git
synced 2024-08-15 03:15:39 +00:00
12 lines
333 B
GDScript
12 lines
333 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)
|
|
get_tree().paused = false
|