mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
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:
parent
8040ebb5cf
commit
f378333000
@ -555,7 +555,7 @@ void StartHostClient()
|
||||
}
|
||||
|
||||
networkAddress = "localhost";
|
||||
NetworkServer.ActivateLocalClientScene();
|
||||
NetworkServer.ActivateHostScene();
|
||||
RegisterClientMessages();
|
||||
|
||||
// ConnectLocalServer needs to be called AFTER RegisterClientMessages
|
||||
|
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user