NetworkLobbyManager: Added Obsoleted Method (#591)

This commit is contained in:
MrGadget 2019-03-13 10:49:11 -04:00 committed by vis2k
parent f17ddfec5f
commit dc0b8d406a

View File

@ -195,6 +195,12 @@ public override void OnServerDisconnect(NetworkConnection conn)
OnLobbyServerDisconnect(conn); OnLobbyServerDisconnect(conn);
} }
[System.Obsolete("Use OnServerAddPlayer(NetworkConnection conn, AddPlayerMessage extraMessage) instead")]
public override void OnServerAddPlayer(NetworkConnection conn)
{
OnServerAddPlayer(conn, null);
}
public override void OnServerAddPlayer(NetworkConnection conn, AddPlayerMessage extraMessage) public override void OnServerAddPlayer(NetworkConnection conn, AddPlayerMessage extraMessage)
{ {
if (SceneManager.GetActiveScene().name != LobbyScene) return; if (SceneManager.GetActiveScene().name != LobbyScene) return;