From c62cf258a8ba1c8f40c69208a28a82c5afc71343 Mon Sep 17 00:00:00 2001 From: Daniel Weipert Date: Wed, 10 Feb 2021 23:53:06 +0100 Subject: Adds GameOver screen --- UI/GameOver.gd | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 UI/GameOver.gd (limited to 'UI/GameOver.gd') diff --git a/UI/GameOver.gd b/UI/GameOver.gd new file mode 100644 index 0000000..6340e89 --- /dev/null +++ b/UI/GameOver.gd @@ -0,0 +1,9 @@ +extends Panel + + +func _ready(): + $Winner.text = Network.winning_player.name + " won!" + + +func _on_BackToLobby_pressed(): + get_tree().change_scene("res://Network/Lobby.tscn") -- cgit v1.2.3