NetworkServer.ActivateLocalClientScene renamed to ActivateHostScene because that's what it really does. It does NOT do something for every local client on a client. Only for a host.

This commit is contained in:
vis2k 2020-02-25 10:31:18 +01:00
parent 8040ebb5cf
commit f378333000
2 changed files with 3 additions and 3 deletions

View File

@ -555,7 +555,7 @@ void StartHostClient()
}
networkAddress = "localhost";
NetworkServer.ActivateLocalClientScene();
NetworkServer.ActivateHostScene();
RegisterClientMessages();
// ConnectLocalServer needs to be called AFTER RegisterClientMessages

View File

@ -202,13 +202,13 @@ internal static void RemoveLocalConnection()
RemoveConnection(0);
}
internal static void ActivateLocalClientScene()
internal static void ActivateHostScene()
{
foreach (NetworkIdentity identity in NetworkIdentity.spawned.Values)
{
if (!identity.isClient)
{
if (LogFilter.Debug) Debug.Log("ActivateClientScene " + identity.netId + " " + identity);
if (LogFilter.Debug) Debug.Log("ActivateHostScene " + identity.netId + " " + identity);
identity.OnStartClient();
}