fix: resolve static cyclic references and unresolvable script dependencies in editor by retrieving Nakama session via get() and loading Autoloads via get_node_or_null
This commit is contained in:
@@ -65,12 +65,12 @@ func _initialize_steamworks_for_auth() -> void:
|
||||
push_error("BackendService: Failed to load Steamworks manager")
|
||||
|
||||
func _initialize_nakama() -> void:
|
||||
nakama_backend = NakamaManager
|
||||
nakama_backend = get_node_or_null("/root/NakamaManager")
|
||||
if nakama_backend:
|
||||
_connect_nakama_signals()
|
||||
print("BackendService: Initialized Nakama backend")
|
||||
else:
|
||||
push_error("BackendService: NakamaManager not found")
|
||||
push_error("BackendService: NakamaManager not found at /root/NakamaManager")
|
||||
|
||||
func _connect_nakama_signals() -> void:
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user