mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
NetworkServer.SpawnObject: add explanation
This commit is contained in:
parent
547da088b1
commit
bb6c0de495
@ -1385,6 +1385,8 @@ static void SpawnObject(GameObject obj, NetworkConnection ownerConnection)
|
||||
if (!identity.isServer && identity.netId == 0)
|
||||
{
|
||||
// configure NetworkIdentity
|
||||
// this may be called in host mode, so we need to initialize
|
||||
// isLocalPlayer/isClient flags too.
|
||||
identity.isLocalPlayer = NetworkClient.localPlayer == identity;
|
||||
identity.isClient = NetworkClient.active;
|
||||
identity.isServer = true;
|
||||
|
Loading…
Reference in New Issue
Block a user