void UpdateGameSession() { if (myGameSession == null) { Debug.Log("1"); return; } Debug.Log("2"); UpdateGameSessionRequest updateGameSessionRequest = new UpdateGameSessionRequest() { GameSessionId = myGameSession.GameSessionId, MaximumPlayerSessionCount = 12 // GameSessionId = gameSession.GameSessionId, }; try { Debug.Log("Updating game session"); UGSR = m_Client.UpdateGameSession(updateGameSessionRequest); Debug.Log("Done Updating game session"); } catch (Exception ex) { Handler(ex); } if (UGSR != null) { Debug.Log(UGSR.GameSession.MaximumPlayerSessionCount); } //return updateGameSessionResponse.GameSession; }