public void JoinRoom() { // TODO: join this room try { string userJson = JsonConvert.SerializeObject(FirebaseManager.currentUser.user); Debug.Log("3" + userJson); FirebaseDatabase.JoinRoom("rooms", room.roomId, userJson, gameObject.name, "OnJoinRoom", "OnError"); } catch (System.Exception) { Debug.LogError("Error when serialize! user"); } }