diff --git a/Assets/Mirror/Components/NetworkLobbyManager.cs b/Assets/Mirror/Components/NetworkLobbyManager.cs index 58329a6ae..dd0b79a45 100644 --- a/Assets/Mirror/Components/NetworkLobbyManager.cs +++ b/Assets/Mirror/Components/NetworkLobbyManager.cs @@ -135,16 +135,6 @@ public void CheckReadyToBegin() OnLobbyServerPlayersReady(); } - public void ServerReturnToLobby() - { - if (!NetworkServer.active) - { - Debug.Log("ServerReturnToLobby called on client"); - return; - } - ServerChangeScene(LobbyScene); - } - void CallOnClientEnterLobby() { OnLobbyClientEnter(); @@ -295,13 +285,6 @@ public override void OnServerSceneChanged(string sceneName) OnLobbyServerSceneChanged(sceneName); } - void OnServerReturnToLobbyMessage(NetworkMessage netMsg) - { - if (LogFilter.Debug) Debug.Log("NetworkLobbyManager OnServerReturnToLobbyMessage"); - - ServerReturnToLobby(); - } - public override void OnStartServer() { if (string.IsNullOrEmpty(LobbyScene)) @@ -489,4 +472,4 @@ public virtual void OnGUI() #endregion } -} \ No newline at end of file +}