pegchamp/Menu/Buttons/PlayButton.gd

12 lines
213 B
GDScript3
Raw Normal View History

2021-09-14 10:22:39 +00:00
extends TextureButton
2021-10-23 14:32:28 +00:00
func _ready() -> void:
disabled = true
visible = false
2021-09-14 10:22:39 +00:00
func _on_PlayButton_pressed():
GameStats.restart_level()
disabled = true
2021-09-28 15:55:03 +00:00
get_tree().paused = false
get_parent().visible = false