(SOLUTION) I have found a solution (Although I don’t know if it is the correct way, but it works) The problem is that the client was getting null all the time. And I had to load this get_nakama_client function like this and add it to the return.
func get_nakama_client() -> NakamaClient:
var NC: NakamaClient
if NC == null:
NC = Nakama.create_client(
nakama_server_key,
nakama_host,
nakama_port,
nakama_scheme,
Nakama.DEFAULT_TIMEOUT,
NakamaLogger.LOG_LEVEL.ERROR)
return NC
I don’t know if I should apply any changes to the set, but for now everything works fine.