2024-04-16 20:29:45 -04:00
|
|
|
extends Node2D
|
|
|
|
|
|
|
|
|
|
|
|
func _ready():
|
|
|
|
process_mode = Node.PROCESS_MODE_ALWAYS
|
|
|
|
|
|
|
|
func _input(event):
|
2024-04-18 19:45:52 -04:00
|
|
|
if event.is_action_pressed("restart") and $GameOver/Leaderboard/HTTPRequest.get_http_client_status() == HTTPClient.STATUS_DISCONNECTED:
|
2024-04-16 20:29:45 -04:00
|
|
|
get_tree().paused = false
|
|
|
|
get_tree().reload_current_scene()
|
2024-04-18 19:45:52 -04:00
|
|
|
if event.is_action_pressed("quit") and $GameOver/Leaderboard/HTTPRequest.get_http_client_status() == HTTPClient.STATUS_DISCONNECTED:
|
2024-04-17 17:22:29 -04:00
|
|
|
get_tree().paused = false
|
|
|
|
get_tree().change_scene_to_file("res://main_menu.tscn")
|