add title script

This commit is contained in:
2025-02-13 21:23:53 +10:00
parent 6a02e40f01
commit 3d53e70e7b
4 changed files with 21 additions and 5 deletions

View File

@@ -13,10 +13,7 @@ var _history_position: int = 0
func _ready() -> void:
print("Cadastery v", ProjectSettings.get_setting("application/config/version"))
if OS.has_feature("dedicated_server") or DisplayServer.get_name() == "headless":
Networker.call_deferred("host_game", true)
if Networker.is_dedicated_server():
return
_host_button.pressed.connect(_on_host_button_pressed)