pegchamp/Menu/Buttons/PlayButton.gd
2021-10-23 16:32:28 +02:00

11 lines
213 B
GDScript

extends TextureButton
func _ready() -> void:
disabled = true
visible = false
func _on_PlayButton_pressed():
GameStats.restart_level()
disabled = true
get_tree().paused = false
get_parent().visible = false