public override void OnLobbyCreated(GalaxyID lobbyID, LobbyCreateResult _result) { if (_result != LobbyCreateResult.LOBBY_CREATE_RESULT_SUCCESS) { Debug.Log("LobbyCreatedListenerCreation failed"); GameObject.Find("MainMenu").GetComponent <MainMenuController>().SwitchMenu(MainMenuController.MenuEnum.OnlineCreate); GameObject.Find("PopUps").GetComponent <PopUps>().PopUpWithClosePopUpsButton("Could not create lobby\nReason: " + _result.ToString(), "back"); return; } Debug.Log("LobbyCreatedListenerCreation succeded"); matchmaking.SetLobbyData(lobbyID, "name", matchmaking.lobbyName); matchmaking.SetLobbyData(lobbyID, "state", "notReady"); matchmaking.CurrentLobbyID = lobbyID; matchmaking.LobbyOwnerID = matchmaking.GetLobbyOwner(lobbyID); matchmaking.SetLobbyMemberData("state", "notReady"); GameObject.Find("MainMenu").GetComponent <MainMenuController>().SwitchMenu(MainMenuController.MenuEnum.OnlineWait); friends.SetRichPresence("status", "In online lobby"); friends.SetRichPresence("connect", "--JoinLobby=" + lobbyID); matchmaking.LobbyManagmentMainMenuListenersInit(); matchmaking.LobbyChatListenersInit(); matchmaking.LobbyCreationListenersDispose(); }