From ab668962d107e684d73f7d90a96e1ccce334fc4d Mon Sep 17 00:00:00 2001 From: MrGadget Date: Wed, 13 Mar 2019 10:49:43 -0400 Subject: [PATCH] Added Obsoleted Methods (#590) --- Assets/Mirror/Runtime/NetworkManager.cs | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Assets/Mirror/Runtime/NetworkManager.cs b/Assets/Mirror/Runtime/NetworkManager.cs index 297769927..3c7a47666 100644 --- a/Assets/Mirror/Runtime/NetworkManager.cs +++ b/Assets/Mirror/Runtime/NetworkManager.cs @@ -650,11 +650,23 @@ public virtual void OnServerReady(NetworkConnection conn) NetworkServer.SetClientReady(conn); } + [Obsolete("Use OnServerAddPlayer(NetworkConnection conn, AddPlayerMessage extraMessage) instead")] + public virtual void OnServerAddPlayer(NetworkConnection conn, NetworkMessage extraMessage) + { + OnServerAddPlayerInternal(conn); + } + public virtual void OnServerAddPlayer(NetworkConnection conn, AddPlayerMessage extraMessage) { OnServerAddPlayerInternal(conn); } + [Obsolete("Use OnServerAddPlayer(NetworkConnection conn, AddPlayerMessage extraMessage) instead")] + public virtual void OnServerAddPlayer(NetworkConnection conn) + { + OnServerAddPlayerInternal(conn); + } + void OnServerAddPlayerInternal(NetworkConnection conn) { if (playerPrefab == null)