paintjam2020/Scripts/EndGameWindow.gd
2020-04-04 23:43:23 +02:00

15 lines
332 B
GDScript

extends Control
func showEndGameWindow(playerName):
get_tree().paused = true
self.visible = true
get_node("/root/World/CanvasLayer/Window/ColorRect/WinnerName").text = playerName
func _on_RestartButton_pressed():
get_tree().paused = false
get_tree().reload_current_scene()
func _on_QuitButton_pressed():
get_tree().quit()