15 lines
332 B
GDScript
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()
|