NetworkServer.GetNetworkIdentity made internal so it can be tested and reused in other places if needed

This commit is contained in:
vis2k 2020-02-25 22:25:39 +01:00
parent e7c9dc4f6e
commit 67a2a85cb9

View File

@ -916,7 +916,7 @@ internal static bool InternalReplacePlayerForConnection(NetworkConnection conn,
return true;
}
static bool GetNetworkIdentity(GameObject go, out NetworkIdentity identity)
internal static bool GetNetworkIdentity(GameObject go, out NetworkIdentity identity)
{
identity = go.GetComponent<NetworkIdentity>();
if (identity == null)