NetworkServer.InternalAddPlayerForConnection moved into AddPlayerForConnection because there is no reason to keep it in an internal method anymore, since NetworkServer is static now

This commit is contained in:
vis2k 2019-03-22 10:04:14 +01:00
parent fb2131207c
commit 0d6b03989a

View File

@ -600,15 +600,10 @@ public static bool AddPlayerForConnection(NetworkConnection conn, GameObject pla
{
identity.assetId = assetId;
}
return InternalAddPlayerForConnection(conn, player);
return AddPlayerForConnection(conn, player);
}
public static bool AddPlayerForConnection(NetworkConnection conn, GameObject player)
{
return InternalAddPlayerForConnection(conn, player);
}
internal static bool InternalAddPlayerForConnection(NetworkConnection conn, GameObject player)
{
NetworkIdentity identity = player.GetComponent<NetworkIdentity>();
if (identity == null)